some new snippets
This commit is contained in:
parent
71a9cdd067
commit
5831837a9b
2 changed files with 39 additions and 23 deletions
|
@ -1,5 +1,3 @@
|
|||
-- nvim cmp
|
||||
|
||||
-- setup completion menu
|
||||
vim.cmd([[
|
||||
set completeopt=menu,menuone,noselect
|
||||
|
@ -7,7 +5,8 @@ set completeopt=menu,menuone,noselect
|
|||
|
||||
-- setup cmp proper: pretty much default config
|
||||
local cmp = require'cmp'
|
||||
return cmp.setup({
|
||||
|
||||
cmp.setup({
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
require'snippy'.expand_snippet(args.body)
|
||||
|
@ -48,4 +47,3 @@ return cmp.setup({
|
|||
end,
|
||||
}
|
||||
})
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue