fix(lsp): terraformls root path

This commit is contained in:
2026-02-19 12:34:20 +02:00
parent eeec610f47
commit 3ce59f2e5b

View File

@@ -85,7 +85,11 @@ return {
}) })
vim.lsp.config('terraformls', { vim.lsp.config('terraformls', {
filetypes = { 'terraform', 'terraform-vars', 'tf' } filetypes = { 'terraform', 'terraform-vars' },
-- run terraformls once for a git repo
root_dir = function(bufnr, on_dir)
on_dir(vim.fs.root(bufnr, '.git'))
end
}) })
end end
} }