This commit is contained in:
Ray Elliott 2022-10-08 11:11:55 +01:00
commit b57d625a5d
3 changed files with 26 additions and 9 deletions

View file

@ -1,6 +1,8 @@
-- nvim-autopairs
require('nvim-autopairs').setup {}
-- you need setup cmp first put this after cmp.setup()
------
-- cmp
require("cmp").setup({
map_cr = false, -- map <CR> on insert mode
map_complete = false, -- it will auto insert `(` after select function or method item
@ -9,7 +11,19 @@ require("cmp").setup({
------
-- nvim-ts-autotag
require'nvim-treesitter.configs'.setup {autotag = {enable = true}}
require'nvim-treesitter.configs'.setup {
autotag = {
enable = true,
filetypes = {
-- not working for astro files
'html', 'javascript', 'typescript', 'javascriptreact', 'typescriptreact', 'svelte', 'vue', 'tsx', 'jsx', 'rescript', 'astro',
'xml',
'php',
'markdown',
'glimmer','handlebars','hbs'
},
}
}
------
-- nvim-ufo