big changes to neovim, might streamline later, also some term environment settings

This commit is contained in:
cnst
2024-08-19 21:24:21 +02:00
parent 5f2487c4ab
commit dffdbb1581
52 changed files with 1471 additions and 447 deletions

View File

@@ -1,22 +1,36 @@
{ lib
, config
, ...
}:
let
inherit (lib) mkEnableOption mkIf;
cfg = config.modules.devtools.neovim.plugins.efm;
in
{
programs.nixvim.plugins = {
lsp.servers.efm = {
enable = true;
extraOptions.init_options = {
documentFormatting = true;
documentRangeFormatting = true;
hover = true;
documentSymbol = true;
codeAction = true;
completion = true;
options = {
modules.devtools.neovim.plugins.efm.enable = mkEnableOption "Enables EFM LSP support for Neovim";
};
config = mkIf cfg.enable {
programs.nixvim.plugins = {
lsp.servers.efm = {
enable = true;
extraOptions.init_options = {
documentFormatting = true;
documentRangeFormatting = true;
hover = true;
documentSymbol = true;
codeAction = true;
completion = true;
};
};
};
lsp-format = {
enable = true;
lspServersToEnable = ["efm"];
};
lsp-format = {
enable = true;
lspServersToEnable = [ "efm" ];
};
efmls-configs.enable = true;
efmls-configs.enable = true;
};
};
}