nvim/lua/init-plugins.lua

36 lines
810 B
Lua
Raw Normal View History

2021-09-09 13:56:57 +00:00
-- nvim-autopairs
2022-07-24 15:12:06 +00:00
require('nvim-autopairs').setup {}
2022-10-08 10:11:55 +00:00
------
-- cmp
2021-12-13 15:16:24 +00:00
require("cmp").setup({
2022-07-24 15:12:06 +00:00
map_cr = false, -- map <CR> on insert mode
map_complete = false, -- it will auto insert `(` after select function or method item
auto_select = true -- automatically select the first item
2021-09-09 13:56:57 +00:00
})
2022-07-24 15:12:06 +00:00
------
2021-09-09 13:56:57 +00:00
2022-07-24 15:12:06 +00:00
-- nvim-ts-autotag
2022-10-08 10:11:55 +00:00
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'
},
}
}
2022-07-24 15:12:06 +00:00
------
2022-09-27 08:39:29 +00:00
-- nvim-ufo
require('ufo').setup({
provider_selector = function(bufnr, filetype, buftype)
return {'treesitter', 'indent'}
end
})
------