nvim: set terraform lsp root dir
This commit is contained in:
parent
4f80dfc9b6
commit
29e40d0d32
@ -3,9 +3,7 @@
|
|||||||
# TODO
|
# TODO
|
||||||
# Linter (ale)
|
# Linter (ale)
|
||||||
# Markdown spellcheck
|
# Markdown spellcheck
|
||||||
# Autocomplete
|
# Missing plugins from old vim config
|
||||||
# Missing plugins
|
|
||||||
# Language support for python, go, tofu, terraform, yaml
|
|
||||||
# Trailing spaces in statusline
|
# Trailing spaces in statusline
|
||||||
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
|
# Good example: https://github.com/fred-drake/neovim/blob/master/config/python/language.nix
|
||||||
|
|
||||||
@ -18,6 +16,7 @@
|
|||||||
enable = true;
|
enable = true;
|
||||||
extraPlugins = [
|
extraPlugins = [
|
||||||
pkgs.vimPlugins.indentLine
|
pkgs.vimPlugins.indentLine
|
||||||
|
pkgs.vimPlugins.nvim-lspconfig
|
||||||
pkgs.vimPlugins.polyglot
|
pkgs.vimPlugins.polyglot
|
||||||
pkgs.vimPlugins.sonokai
|
pkgs.vimPlugins.sonokai
|
||||||
];
|
];
|
||||||
@ -72,7 +71,10 @@
|
|||||||
};
|
};
|
||||||
lsp.servers.gopls.enable = true;
|
lsp.servers.gopls.enable = true;
|
||||||
lsp.servers.nixd.enable = true;
|
lsp.servers.nixd.enable = true;
|
||||||
lsp.servers.terraformls.enable = true;
|
lsp.servers.terraformls = {
|
||||||
|
enable = true;
|
||||||
|
rootDir = "require('lspconfig.util').root_pattern('.git', '.terraform')";
|
||||||
|
};
|
||||||
lsp.servers.tflint.enable = true;
|
lsp.servers.tflint.enable = true;
|
||||||
lsp.servers.yamlls.enable = true;
|
lsp.servers.yamlls.enable = true;
|
||||||
lsp-format.enable = true; # Automatically format on save
|
lsp-format.enable = true; # Automatically format on save
|
||||||
|
Loading…
x
Reference in New Issue
Block a user