config(nvim): use native vim.snippet

Thanks nvim 0.10.0 release
See https://github.com/hrsh7th/nvim-cmp/pull/1820
main
sudo pacman -Syu 2024-05-17 00:21:59 +07:00
parent ad30b0dfbd
commit 9c5399bcc1
2 changed files with 2 additions and 3 deletions

View File

@ -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"

View File

@ -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({