Skip to content

Commit 87ca125

Browse files
committed
feat: use builtin snippet expansion instead of LuaSnip (nvim 0.10+)
1 parent 045c213 commit 87ca125

File tree

1 file changed

+3
-16
lines changed

1 file changed

+3
-16
lines changed

kickstart-python.lua

Lines changed: 3 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -141,21 +141,10 @@ local plugins = {
141141
-- - select an item with `<Tab>`/`<S-Tab>`
142142
{
143143
"hrsh7th/nvim-cmp",
144-
dependencies = {
145-
"hrsh7th/cmp-nvim-lsp", -- use suggestions from the LSP
146-
147-
-- Snippet engine. Required for nvim-cmp to work, even if you don't
148-
-- intend to use custom snippets.
149-
"L3MON4D3/LuaSnip", -- snippet engine
150-
"saadparwaiz1/cmp_luasnip", -- adapter for the snippet engine
151-
},
144+
dependencies = "hrsh7th/cmp-nvim-lsp", -- use suggestions from the LSP
152145
config = function()
153146
local cmp = require("cmp")
154147
cmp.setup({
155-
-- tell cmp to use Luasnip as our snippet engine
156-
snippet = {
157-
expand = function(args) require("luasnip").lsp_expand(args.body) end,
158-
},
159148
-- Define the mappings for the completion. The `fallback()` call
160149
-- ensures that when there is no suggestion window open, the mapping
161150
-- falls back to the default behavior (adding indentation).
@@ -212,9 +201,8 @@ local plugins = {
212201
send_motion = "+",
213202
},
214203
config = {
215-
-- this defined how the repl is opened. Here we set the REPL window
216-
-- to open in a horizontal split to a bottom, with a height of 10
217-
-- cells.
204+
-- This defines how the repl is opened. Here, we set the REPL window
205+
-- to open in a horizontal split to the bottom, with a height of 10.
218206
repl_open_cmd = "horizontal bot 10 split",
219207

220208
-- This defines which binary to use for the REPL. If `ipython` is
@@ -259,7 +247,6 @@ local plugins = {
259247
"toml",
260248
"rst",
261249
"ninja",
262-
-- needed for formatting code-blocks inside markdown via conform.nvim
263250
"markdown",
264251
"markdown_inline",
265252
},

0 commit comments

Comments
 (0)