Fix terraform commenting, other small changes
This commit is contained in:
parent
20af6881f3
commit
39437ac1df
2
init.lua
2
init.lua
|
@ -858,7 +858,7 @@ require('lazy').setup({
|
|||
'nvim-treesitter/nvim-treesitter',
|
||||
build = ':TSUpdate',
|
||||
opts = {
|
||||
ensure_installed = { 'bash', 'c', 'diff', 'groovy', 'html', 'lua', 'luadoc', 'markdown', 'python', 'terraform', 'vim', 'vimdoc' },
|
||||
ensure_installed = { 'bash', 'c', 'diff', 'groovy', 'hcl', 'html', 'lua', 'luadoc', 'markdown', 'python', 'terraform', 'vim', 'vimdoc' },
|
||||
-- Autoinstall languages that are not installed
|
||||
auto_install = true,
|
||||
highlight = {
|
||||
|
|
|
@ -1,4 +1,4 @@
|
|||
return {
|
||||
'github/copilot.vim',
|
||||
enabled = false,
|
||||
enabled = true,
|
||||
}
|
||||
|
|
|
@ -17,4 +17,12 @@ return {
|
|||
end,
|
||||
},
|
||||
},
|
||||
--fix terraform and hcl comment string
|
||||
vim.api.nvim_create_autocmd('FileType', {
|
||||
group = vim.api.nvim_create_augroup('FixTerraformCommentString', { clear = true }),
|
||||
callback = function(ev)
|
||||
vim.bo[ev.buf].commentstring = '# %s'
|
||||
end,
|
||||
pattern = { 'terraform', 'hcl' },
|
||||
}),
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue