This commit is contained in:
Tony Thayer-Osborne 2023-05-05 13:49:02 -07:00 committed by Tony Thayer-Osborne
parent a1fdb97f3e
commit b733145181
No known key found for this signature in database
GPG Key ID: 4750FF483E701B75
4 changed files with 41 additions and 0 deletions

View File

@ -0,0 +1,4 @@
return {
"windwp/nvim-autopairs",
config = function() require("nvim-autopairs").setup {} end
}

View File

@ -0,0 +1,4 @@
return {
"terrortylor/nvim-comment",
config = function() require("nvim_comment").setup() end
}

View File

@ -0,0 +1,30 @@
return {
'towolf/vim-helm',
config = function()
local function detach_yamlls()
local clients = vim.lsp.get_active_clients()
for client_id, client in pairs(clients) do
if client.name == "yamlls" then
vim.lsp.buf_detach_client(0, client_id)
end
end
end
local gotmpl_group = vim.api.nvim_create_augroup("_gotmpl", { clear = true })
vim.api.nvim_create_autocmd("FileType", {
group = gotmpl_group,
pattern = "yaml",
callback = function()
vim.schedule(function()
local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false)
for _, line in ipairs(lines) do
if string.match(line, "{{.+}}") then
vim.defer_fn(detach_yamlls, 500)
return
end
end
end)
end,
})
end
}

View File

@ -0,0 +1,3 @@
return {
"hashivim/vim-terraform"
}