feat(nvim): setup bashls
All checks were successful
Discord / discord commits (push) Has been skipped
All checks were successful
Discord / discord commits (push) Has been skipped
This commit is contained in:
parent
064b6b07f9
commit
b034a294cb
1 changed files with 13 additions and 4 deletions
|
@ -5,7 +5,6 @@
|
|||
...
|
||||
}: let
|
||||
inherit (config.vars) neovimIde;
|
||||
inherit (pkgs) vimPlugins;
|
||||
in {
|
||||
programs = {
|
||||
# I love doing typos
|
||||
|
@ -20,6 +19,7 @@ in {
|
|||
vimAlias = true;
|
||||
|
||||
extraLuaConfig =
|
||||
lib.mkIf neovimIde
|
||||
/*
|
||||
lua
|
||||
*/
|
||||
|
@ -28,11 +28,20 @@ in {
|
|||
pattern = 'sh',
|
||||
command = 'setlocal ts=4 sw=4 sts=0 expandtab',
|
||||
});
|
||||
|
||||
require('lspconfig').bashls.setup(require('coq').lsp_ensure_capabilities({
|
||||
settings = {
|
||||
bashIde = {
|
||||
shellcheckPath = '${pkgs.shellcheck}',
|
||||
},
|
||||
},
|
||||
}));
|
||||
'';
|
||||
|
||||
plugins =
|
||||
lib.mkIf neovimIde [
|
||||
];
|
||||
extraPackages = lib.mkIf neovimIde [
|
||||
pkgs.nodePackages.bash-language-server
|
||||
pkgs.shellcheck
|
||||
];
|
||||
};
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue