Fixed autoparis warning
This commit is contained in:
parent
33d7b260c0
commit
1394c013a4
10
init.lua
10
init.lua
@ -159,16 +159,6 @@ require'nvim-treesitter.configs'.setup {
|
||||
require("luasnip.loaders.from_vscode").load()
|
||||
-------------------- AUTOPAIRS -----------------------------
|
||||
require('nvim-autopairs').setup{}
|
||||
require("nvim-autopairs.completion.cmp").setup({
|
||||
map_cr = true, -- map <CR> on insert mode
|
||||
map_complete = true, -- it will auto insert `(` (map_char) after select function or method item
|
||||
auto_select = true, -- automatically select the first item
|
||||
insert = false, -- use insert confirm behavior instead of replace
|
||||
map_char = { -- modifies the function or method delimiter by filetypes
|
||||
all = '(',
|
||||
tex = '{'
|
||||
}
|
||||
})
|
||||
-------------------- FZF NATIVE ----------------------------
|
||||
require('telescope').load_extension('fzf')
|
||||
-------------------- TERMINAL ------------------------------
|
||||
|
@ -105,6 +105,8 @@ cmp.setup.cmdline(':', {
|
||||
-- map_complete = true,
|
||||
-- auto_select = true
|
||||
--})
|
||||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
|
||||
|
||||
-- TabNine
|
||||
--local tabnine = require('cmp_tabnine.config')
|
||||
|
Loading…
x
Reference in New Issue
Block a user