nvim: move to services we do not specify a pkgset
This commit is contained in:
parent
465a6b19d1
commit
11b98d8146
45 changed files with 38 additions and 37 deletions
27
services/nvim/lsp/ltex.nix
Normal file
27
services/nvim/lsp/ltex.nix
Normal file
|
@ -0,0 +1,27 @@
|
|||
{
|
||||
lib,
|
||||
config,
|
||||
pkgs,
|
||||
...
|
||||
}:
|
||||
|
||||
lib.optionalAttrs (lib.elem "nvim::lsp::ltex" config.machine.pkgs) {
|
||||
ltex = {
|
||||
cmd = [ "${pkgs.ltex-ls}/bin/ltex-ls" ];
|
||||
settings = {
|
||||
ltex = {
|
||||
language = "de-DE";
|
||||
};
|
||||
};
|
||||
on_attach =
|
||||
_: # lua
|
||||
''
|
||||
function(client, bufnr)
|
||||
vim.api.nvim_create_user_command(
|
||||
"LtexLang",
|
||||
"lua SetLtexLang(<q-args>)",
|
||||
{ nargs = 1, desc = "Set ltex-ls language" }
|
||||
)
|
||||
end'';
|
||||
};
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue