fix: add luasnip unlink keybind back
This commit is contained in:
@@ -31,7 +31,6 @@ return {
|
||||
["<C-S-k>"] = { "scroll_documentation_up", "scroll_signature_up" },
|
||||
["<C-,>"] = { "snippet_backward", "fallback" },
|
||||
["<C-.>"] = { "snippet_forward", "fallback" },
|
||||
["<C-s>"] = { "show_signature", "hide_signature", "fallback" },
|
||||
["<Tab>"] = {
|
||||
function(cmp)
|
||||
if cmp.snippet_active() then
|
||||
|
||||
@@ -47,6 +47,7 @@ return {
|
||||
require("luasnip.loaders.from_vscode").lazy_load()
|
||||
require("luasnip.loaders.from_vscode").load({ paths = { "~/.config/nvim/snippets" } })
|
||||
luasnip.setup({})
|
||||
vim.keymap.set("n", "<C-s>", ":LuaSnipUnlinkCurrent<CR>", { desc = "Unlink current snippet" })
|
||||
end,
|
||||
}
|
||||
-- ───────────────────────────────────────────────────────────────────
|
||||
|
||||
Reference in New Issue
Block a user