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
|
}: 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
|
||||||
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue