From bf3d577550448dd0e26c504c7d6d26be3c13163c Mon Sep 17 00:00:00 2001 From: pika Date: Tue, 29 Oct 2024 12:26:07 +0100 Subject: [PATCH] addet scissors plugin + addet the snippets folder --- lua/pika/plugins/scissors.lua | 3 ++- snippets/lua.json | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/lua/pika/plugins/scissors.lua b/lua/pika/plugins/scissors.lua index dd3cbdc..83bb295 100644 --- a/lua/pika/plugins/scissors.lua +++ b/lua/pika/plugins/scissors.lua @@ -7,5 +7,6 @@ return { snippetDir = "~/.config/nvim/snippets", }, }, - vim.keymap.set("v", "sm", ":ScissorsAddNewSnippet"), + vim.keymap.set("n", "sm", ":ScissorsEditSnippet"), + vim.keymap.set("v", "sa", ":ScissorsAddNewSnippet"), } diff --git a/snippets/lua.json b/snippets/lua.json index 9e26dfe..7ebdc51 100644 --- a/snippets/lua.json +++ b/snippets/lua.json @@ -1 +1 @@ -{} \ No newline at end of file +{"keymap":{"body":["vim.keymap.set(\"${1:mode}\", \"${2:keymap}\", \"${3:command}\"),","$0"],"prefix":"keymap"}} \ No newline at end of file