mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-09-01 08:15:20 +02:00
just use tf
This commit is contained in:
parent
0dd2087b52
commit
9611a50acc
5 changed files with 7 additions and 7 deletions
|
@ -1 +0,0 @@
|
||||||
require("lsp").setup "hcl"
|
|
1
ftplugin/tf.lua
Normal file
1
ftplugin/tf.lua
Normal file
|
@ -0,0 +1 @@
|
||||||
|
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=hcl" },
|
-- { "BufWinEnter", ".tf", "setlocal filetype=terraform" },
|
||||||
{ "BufRead", "*.tf", "setlocal filetype=hcl" },
|
-- { "BufRead", "*.tf", "setlocal filetype=terraform" },
|
||||||
{ "BufNewFile", "*.tf", "setlocal filetype=hcl" },
|
-- { "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",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
hcl = {
|
tf = {
|
||||||
formatter = {
|
formatter = {
|
||||||
exe = "terraform_fmt",
|
exe = "terraform_fmt",
|
||||||
args = {},
|
args = {},
|
||||||
|
@ -860,7 +860,7 @@ lvim.lang = {
|
||||||
lsp = {
|
lsp = {
|
||||||
provider = "terraformls",
|
provider = "terraformls",
|
||||||
setup = {
|
setup = {
|
||||||
filetypes = { "terraform", "hcl", "tf" },
|
filetypes = { "terraform", "tf" },
|
||||||
cmd = {
|
cmd = {
|
||||||
DATA_PATH .. "/lspinstall/terraform/terraform-ls",
|
DATA_PATH .. "/lspinstall/terraform/terraform-ls",
|
||||||
"serve",
|
"serve",
|
||||||
|
|
|
@ -150,7 +150,7 @@ return {
|
||||||
config = function()
|
config = function()
|
||||||
vim.g.rooter_silent_chdir = 1
|
vim.g.rooter_silent_chdir = 1
|
||||||
vim.g.rooter_patterns = {
|
vim.g.rooter_patterns = {
|
||||||
".git",
|
".git/",
|
||||||
"_darcs",
|
"_darcs",
|
||||||
".hg",
|
".hg",
|
||||||
".bzr",
|
".bzr",
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue