mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-20 18:45:08 +02:00
properly support terraform
This commit is contained in:
parent
d1ca23af34
commit
3ff9679e5a
4 changed files with 5 additions and 6 deletions
1
ftplugin/terraform.lua
Normal file
1
ftplugin/terraform.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
require("lsp").setup "terraform"
|
|
@ -1 +0,0 @@
|
||||||
require("lsp").setup "tf"
|
|
|
@ -36,9 +36,9 @@ lvim.autocommands = {
|
||||||
-- { "VimLeavePre", "*", "set title set titleold=" },
|
-- { "VimLeavePre", "*", "set title set titleold=" },
|
||||||
},
|
},
|
||||||
_filetypechanges = {
|
_filetypechanges = {
|
||||||
-- { "BufWinEnter", ".tf", "setlocal filetype=terraform" },
|
{ "BufWinEnter", ".tf", "setlocal filetype=terraform" },
|
||||||
-- { "BufRead", "*.tf", "setlocal filetype=terraform" },
|
{ "BufRead", "*.tf", "setlocal filetype=terraform" },
|
||||||
-- { "BufNewFile", "*.tf", "setlocal filetype=terraform" },
|
{ "BufNewFile", "*.tf", "setlocal filetype=terraform" },
|
||||||
{ "BufWinEnter", ".zsh", "setlocal filetype=sh" },
|
{ "BufWinEnter", ".zsh", "setlocal filetype=sh" },
|
||||||
{ "BufRead", "*.zsh", "setlocal filetype=sh" },
|
{ "BufRead", "*.zsh", "setlocal filetype=sh" },
|
||||||
{ "BufNewFile", "*.zsh", "setlocal filetype=sh" },
|
{ "BufNewFile", "*.zsh", "setlocal filetype=sh" },
|
||||||
|
|
|
@ -851,7 +851,7 @@ lvim.lang = {
|
||||||
"typescriptreact",
|
"typescriptreact",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
tf = {
|
terraform = {
|
||||||
formatter = {
|
formatter = {
|
||||||
exe = "terraform_fmt",
|
exe = "terraform_fmt",
|
||||||
args = {},
|
args = {},
|
||||||
|
@ -860,7 +860,6 @@ lvim.lang = {
|
||||||
lsp = {
|
lsp = {
|
||||||
provider = "terraformls",
|
provider = "terraformls",
|
||||||
setup = {
|
setup = {
|
||||||
filetypes = { "terraform", "tf" },
|
|
||||||
cmd = {
|
cmd = {
|
||||||
DATA_PATH .. "/lspinstall/terraform/terraform-ls",
|
DATA_PATH .. "/lspinstall/terraform/terraform-ls",
|
||||||
"serve",
|
"serve",
|
||||||
|
|
Loading…
Reference in a new issue