Fix terraform commenting, other small changes

This commit is contained in:
gmcmillan82 2024-08-23 11:00:09 +02:00
parent 20af6881f3
commit 39437ac1df
3 changed files with 10 additions and 2 deletions

View File

@ -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 = {

View File

@ -1,4 +1,4 @@
return {
'github/copilot.vim',
enabled = false,
enabled = true,
}

View File

@ -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' },
}),
}