nvim: add more language servers
This commit is contained in:
parent
d79368ff44
commit
39e9b52938
@ -3,7 +3,7 @@
|
||||
imports = [
|
||||
./telescope.nix
|
||||
];
|
||||
programs.nixvim = {
|
||||
programs.nixvim = {
|
||||
colorscheme = "sonokai";
|
||||
enable = true;
|
||||
extraPlugins = [
|
||||
@ -55,7 +55,16 @@ programs.nixvim = {
|
||||
gitsigns.enable = true; # Show git change in first line
|
||||
guess-indent.enable = true; # Guess indent of the file
|
||||
lsp.enable = true;
|
||||
lsp.servers.pylsp = {
|
||||
lsp.servers = {
|
||||
bashls.enable = true;
|
||||
dockerls.enable = true;
|
||||
gitlab_ci_ls.enable = true;
|
||||
gitlab_ci_ls.package = pkgs.gitlab-ci-ls;
|
||||
gopls.enable = true;
|
||||
helm_ls.enable = true;
|
||||
jsonls.enable = true;
|
||||
nixd.enable = true;
|
||||
pylsp = {
|
||||
enable = true;
|
||||
settings.plugins = {
|
||||
black.enabled = true;
|
||||
@ -64,15 +73,13 @@ programs.nixvim = {
|
||||
ruff.formatEnabled = false;
|
||||
};
|
||||
};
|
||||
lsp.servers.bashls.enable = true;
|
||||
lsp.servers.gopls.enable = true;
|
||||
lsp.servers.nixd.enable = true;
|
||||
lsp.servers.terraformls = {
|
||||
terraformls = {
|
||||
enable = true;
|
||||
rootDir = "require('lspconfig.util').root_pattern('.git', '.terraform')";
|
||||
};
|
||||
lsp.servers.tflint.enable = true;
|
||||
lsp.servers.yamlls.enable = true;
|
||||
tflint.enable = true;
|
||||
yamlls.enable = true;
|
||||
};
|
||||
lsp-format.enable = true; # Automatically format on save
|
||||
lsp-lines.enable = true; # Display LSP hints in lines
|
||||
lsp-signature.enable = true; # Show function signature when typing
|
||||
|
Loading…
x
Reference in New Issue
Block a user