Merge pull request #1439 from snoweuph/feat/fluent
Some checks failed
Set up binary cache / cachix (default) (push) Has been cancelled
Set up binary cache / cachix (maximal) (push) Has been cancelled
Set up binary cache / cachix (nix) (push) Has been cancelled
Treewide Checks / Validate flake (push) Has been cancelled
Treewide Checks / Check formatting (push) Has been cancelled
Treewide Checks / Check source tree for typos (push) Has been cancelled
Treewide Checks / Validate documentation builds (push) Has been cancelled
Treewide Checks / Validate documentation builds-1 (push) Has been cancelled
Treewide Checks / Validate documentation builds-2 (push) Has been cancelled
Treewide Checks / Validate documentation builds-3 (push) Has been cancelled
Treewide Checks / Validate hyperlinks in documentation sources (push) Has been cancelled
Treewide Checks / Validate Editorconfig conformance (push) Has been cancelled
Build and deploy documentation / Check latest commit (push) Has been cancelled
Build and deploy documentation / publish (push) Has been cancelled

language/fluent: init
This commit is contained in:
raf 2026-03-07 12:19:03 +03:00 committed by GitHub
commit 6681e33727
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 52 additions and 0 deletions

View file

@ -102,6 +102,7 @@ isMaximal: {
svelte.enable = false; svelte.enable = false;
tera.enable = false; tera.enable = false;
twig.enable = false; twig.enable = false;
fluent.enable = false;
# Nim LSP is broken on Darwin and therefore # Nim LSP is broken on Darwin and therefore
# should be disabled by default. Users may still enable # should be disabled by default. Users may still enable

View file

@ -222,6 +222,9 @@
- Fix `languages.hcl` init, depending on `comment-nvim` by checking if it is - Fix `languages.hcl` init, depending on `comment-nvim` by checking if it is
enabled. Fixes a crash (#1350). enabled. Fixes a crash (#1350).
- Add `languages.fluent` using the official plugin. This only provides
highlighting.
- Added Debugging support to `languages.php`. - Added Debugging support to `languages.php`.
- Added Formatting support to `languages.php` via - Added Formatting support to `languages.php` via

View file

@ -59,6 +59,7 @@ in {
./just.nix ./just.nix
./make.nix ./make.nix
./xml.nix ./xml.nix
./fluent.nix
# This is now a hard deprecation. # This is now a hard deprecation.
(mkRenamedOptionModule ["vim" "languages" "enableLSP"] ["vim" "lsp" "enable"]) (mkRenamedOptionModule ["vim" "languages" "enableLSP"] ["vim" "lsp" "enable"])

View file

@ -0,0 +1,34 @@
{
config,
lib,
...
}: let
inherit (lib.options) mkEnableOption;
inherit (lib.modules) mkIf;
cfg = config.vim.languages.fluent;
in {
options.vim.languages.fluent = {
enable = mkEnableOption "Fluent language support";
};
config = mkIf cfg.enable {
vim = {
lazy.plugins.fluent-nvim = {
package = "fluent-nvim";
ft = ["fluent"];
};
autocmds = [
{
event = [
"BufRead"
"BufNewFile"
];
pattern = ["*.ftl"];
desc = "Set fluent filetype";
command = "set filetype=fluent";
}
];
};
};
}

View file

@ -539,6 +539,19 @@
"url": "https://github.com/folke/flash.nvim/archive/b68bda044d68e4026c4e1ec6df3c5afd7eb8e341.tar.gz", "url": "https://github.com/folke/flash.nvim/archive/b68bda044d68e4026c4e1ec6df3c5afd7eb8e341.tar.gz",
"hash": "sha256-7isgZdploAGK5l8TxVxL277CH6kPbcBnMwfZeqPHjq4=" "hash": "sha256-7isgZdploAGK5l8TxVxL277CH6kPbcBnMwfZeqPHjq4="
}, },
"fluent-nvim": {
"type": "Git",
"repository": {
"type": "GitHub",
"owner": "projectfluent",
"repo": "fluent.vim"
},
"branch": "master",
"submodules": false,
"revision": "94c1ef622187032778f546d2f8ad821661475172",
"url": "https://github.com/projectfluent/fluent.vim/archive/94c1ef622187032778f546d2f8ad821661475172.tar.gz",
"hash": "sha256-tOYxOUKa6Zn2Yq5peqGDEdCkpl+b+VKkSmZx7+kHZJ0="
},
"flutter-tools-nvim": { "flutter-tools-nvim": {
"type": "Git", "type": "Git",
"repository": { "repository": {