Pi66

Home | Repos | About | Blog | Gaza

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

About | Files | Commits | Refs | License


add: cmp now supports built-in snippet

Author: pi66
Date: 2026-05-02 18:06
commit: d11f1f46

Stat

M nvim/lua/setup.lua 12 +5 -7

Diff

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", ...

Show all

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", -})

// Created by Pi66

// Copyright ©Pi66 2026