From ed5c4406a97b0e4a0480ef071d1d75efb22cb881 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Tue, 29 Apr 2025 17:29:21 +0300 Subject: Configured nvim blink-cmp plugin, a few notes: Added nvim-scissors to make snippets easier to configure Added colorful-menu to make completions cooler (more like IntelliJ/vsc*de), disabled for now until carbonight has colors for it Removed nvim-cmp Installed jq for formatting json snippets --- .config/nvim/lua/plugins/nvim-scissors.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create mode 100644 .config/nvim/lua/plugins/nvim-scissors.lua (limited to '.config/nvim/lua/plugins/nvim-scissors.lua') diff --git a/.config/nvim/lua/plugins/nvim-scissors.lua b/.config/nvim/lua/plugins/nvim-scissors.lua new file mode 100644 index 0000000..8eb3b8b --- /dev/null +++ b/.config/nvim/lua/plugins/nvim-scissors.lua @@ -0,0 +1,27 @@ +return { + 'chrisgrieser/nvim-scissors', + dependencies = 'folke/snacks.nvim', + event = 'VeryLazy', + opts = { + ---@type "yq"|"jq"|"none"|string[] + jsonFormatter = 'jq', + }, + keys = { + { + 'sa', + function() + require('scissors').addNewSnippet() + end, + desc = '[S]nippet [A]dd', + mode = { 'n', 'x' }, + }, + { + 'se', + function() + require('scissors').editSnippet() + end, + desc = '[S]nippet [E]dit', + mode = { 'n', 'x' }, + }, + }, +} -- cgit v1.3.1