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