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