Skip to content

Commit

Permalink
config(nvim): use native vim.snippet
Browse files Browse the repository at this point in the history
Thanks nvim 0.10.0 release
See hrsh7th/nvim-cmp#1820
  • Loading branch information
haunt98 committed May 16, 2024
1 parent ad30b0d commit 9c5399b
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions data/newsboat/urls
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
4 changes: 1 addition & 3 deletions data/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ require("lazy").setup({
"hrsh7th/nvim-cmp",
event = "InsertEnter",
dependencies = {
"hrsh7th/vim-vsnip",
"hrsh7th/cmp-nvim-lsp",
"hrsh7th/cmp-buffer",
},
Expand All @@ -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({
Expand Down

0 comments on commit 9c5399b

Please sign in to comment.