config(nvim): use native vim.snippet
Thanks nvim 0.10.0 release See https://github.com/hrsh7th/nvim-cmp/pull/1820main
parent
ad30b0dfbd
commit
9c5399bcc1
|
@ -13,6 +13,7 @@ https://github.com/uber-go/zap/commits/master.atom "~zap"
|
|||
|
||||
https://github.com/kovidgoyal/kitty/commits/master.atom "~kitty"
|
||||
https://github.com/wez/wezterm/commits/main.atom "~wezterm"
|
||||
https://github.com/be5invis/Iosevka/commits/main.atom "~Iosevka"
|
||||
|
||||
https://github.com/caksoylar/keymap-drawer/commits/main.atom "~keymap-drawer"
|
||||
https://github.com/qmk/qmk_firmware/commits/develop.atom "~qmk_firmware/develop"
|
||||
|
|
|
@ -195,7 +195,6 @@ require("lazy").setup({
|
|||
"hrsh7th/nvim-cmp",
|
||||
event = "InsertEnter",
|
||||
dependencies = {
|
||||
"hrsh7th/vim-vsnip",
|
||||
"hrsh7th/cmp-nvim-lsp",
|
||||
"hrsh7th/cmp-buffer",
|
||||
},
|
||||
|
@ -212,8 +211,7 @@ require("lazy").setup({
|
|||
-- Largely copy from GitHub
|
||||
snippet = {
|
||||
expand = function(args)
|
||||
-- TODO: Remove later
|
||||
vim.fn["vsnip#anonymous"](args.body)
|
||||
vim.snippet.expand(args.body)
|
||||
end,
|
||||
},
|
||||
mapping = cmp.mapping.preset.insert({
|
||||
|
|
Loading…
Reference in New Issue