nvim: update cmp comfiguration
This commit is contained in:
parent
69cd79a960
commit
68f073dab3
1 changed files with 2 additions and 4 deletions
|
@ -102,8 +102,6 @@ M.cmp = function()
|
|||
local cmp_autopairs = require('nvim-autopairs.completion.cmp')
|
||||
local cmp = require('cmp')
|
||||
cmp.event:on( 'confirm_done', cmp_autopairs.on_confirm_done({ map_char = { tex = '' } }))
|
||||
-- add a lisp filetype (wrap my-function), FYI: Hardcoded = { "clojure", "clojurescript", "fennel", "janet" }
|
||||
cmp_autopairs.lisp[#cmp_autopairs.lisp+1] = "racket" -- nvim-cmp setup
|
||||
cmp.setup {
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
|
@ -201,9 +199,9 @@ M.cmp = function()
|
|||
cmp.setup.cmdline(':', {
|
||||
mapping = cmp.mapping.preset.cmdline(),
|
||||
sources = cmp.config.sources({
|
||||
{ name = 'path' }
|
||||
}, {
|
||||
{ name = 'cmdline' }
|
||||
}, {
|
||||
{ name = 'path' }
|
||||
})
|
||||
})
|
||||
end -- <<<
|
||||
|
|
Loading…
Add table
Reference in a new issue