feat(nvim): setup bashls
All checks were successful
Discord / discord commits (push) Has been skipped

This commit is contained in:
matt1432 2024-05-11 14:42:59 -04:00
parent 064b6b07f9
commit b034a294cb

View file

@ -5,7 +5,6 @@
... ...
}: let }: let
inherit (config.vars) neovimIde; inherit (config.vars) neovimIde;
inherit (pkgs) vimPlugins;
in { in {
programs = { programs = {
# I love doing typos # I love doing typos
@ -20,6 +19,7 @@ in {
vimAlias = true; vimAlias = true;
extraLuaConfig = extraLuaConfig =
lib.mkIf neovimIde
/* /*
lua lua
*/ */
@ -28,11 +28,20 @@ in {
pattern = 'sh', pattern = 'sh',
command = 'setlocal ts=4 sw=4 sts=0 expandtab', command = 'setlocal ts=4 sw=4 sts=0 expandtab',
}); });
require('lspconfig').bashls.setup(require('coq').lsp_ensure_capabilities({
settings = {
bashIde = {
shellcheckPath = '${pkgs.shellcheck}',
},
},
}));
''; '';
plugins = extraPackages = lib.mkIf neovimIde [
lib.mkIf neovimIde [ pkgs.nodePackages.bash-language-server
]; pkgs.shellcheck
];
}; };
}; };
} }