Skip to content

Commit b733145

Browse files
Tony Thayer-Osbornetthayer
authored andcommitted
Updates
1 parent a1fdb97 commit b733145

File tree

4 files changed

+41
-0
lines changed

4 files changed

+41
-0
lines changed

lua/custom/plugins/autopairs.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
return {
2+
"windwp/nvim-autopairs",
3+
config = function() require("nvim-autopairs").setup {} end
4+
}

lua/custom/plugins/comment.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
return {
2+
"terrortylor/nvim-comment",
3+
config = function() require("nvim_comment").setup() end
4+
}

lua/custom/plugins/helm.lua

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
return {
2+
'towolf/vim-helm',
3+
config = function()
4+
local function detach_yamlls()
5+
local clients = vim.lsp.get_active_clients()
6+
for client_id, client in pairs(clients) do
7+
if client.name == "yamlls" then
8+
vim.lsp.buf_detach_client(0, client_id)
9+
end
10+
end
11+
end
12+
13+
local gotmpl_group = vim.api.nvim_create_augroup("_gotmpl", { clear = true })
14+
vim.api.nvim_create_autocmd("FileType", {
15+
group = gotmpl_group,
16+
pattern = "yaml",
17+
callback = function()
18+
vim.schedule(function()
19+
local lines = vim.api.nvim_buf_get_lines(0, 0, -1, false)
20+
for _, line in ipairs(lines) do
21+
if string.match(line, "{{.+}}") then
22+
vim.defer_fn(detach_yamlls, 500)
23+
return
24+
end
25+
end
26+
end)
27+
end,
28+
})
29+
end
30+
}
Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
return {
2+
"hashivim/vim-terraform"
3+
}

0 commit comments

Comments
 (0)