Pi66

dots
My personal Linux configuration files and dotfiles.
git clone https://git.pi66.xyz/dots

← back to log

add: cmp now supports built-in snippet

author: pi66
date: 2026-05-02 18:06
hash: d11f1f4601724f71615f8774fb41fe2c8f91c271

Diffstat:

M

nvim/lua/setup.lua
12 ++++++++++++------------------
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
diff --git a/nvim/lua/setup.lua b/nvim/lua/setup.lua
index c87dcb9..5af81b4 100644
--- a/nvim/lua/setup.lua
+++ b/nvim/lua/setup.lua
@@ -38,12 +38,10 @@ cmp.setup({
         { name = "buffer"   },
         { name = "path"     },
     },
+   snippet = {
+       expand = function(args)
+           vim.snippet.expand(args.body)
+       end,
+   },
 })

-require("nvim-treesitter").install({
-    "rust",
-    "c",
-    "javascript",
-    "zig",
-    "python",
-})