fix(lsp): terraformls root path
This commit is contained in:
@@ -85,7 +85,11 @@ return {
|
||||
})
|
||||
|
||||
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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user