Update .config/nvim/lazy-lock.json

Update .config/nvim/lua/config/20_keymaps.lua
Update .config/nvim/lua/plugin/10_hop.lua
Update .config/nvim/lua/plugin/20_completion.lua
Add .config/nvim/snippets/lua.json
Add .config/nvim/snippets/package.json
This commit is contained in:
Lewis Wynne 2025-11-02 23:43:29 +00:00
parent 9c23f65869
commit 1f04e09b4f
6 changed files with 31 additions and 5 deletions

View file

@ -1,8 +1,9 @@
{ {
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" }, "friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
"helix-nvim": { "branch": "main", "commit": "c2875fb19df7f3624d0ae1c82b063fc14de1d64b" }, "helix-nvim": { "branch": "main", "commit": "c2875fb19df7f3624d0ae1c82b063fc14de1d64b" },
"hop.nvim": { "branch": "master", "commit": "08ddca799089ab96a6d1763db0b8adc5320bf050" }, "hop.nvim": { "branch": "master", "commit": "08ddca799089ab96a6d1763db0b8adc5320bf050" },
"lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" }, "lazy.nvim": { "branch": "main", "commit": "db067881fff0fd4be8c00e5bde7492e0e1c77a2f" },
"mini.completion": { "branch": "main", "commit": "2ab1c8078061a647b0867581a1dcedb046b9ce27" }, "mini.snippets": { "branch": "main", "commit": "7610dc3aaf7fb09b9cc428273a8ba15ef8aef495" },
"mini.snippets": { "branch": "main", "commit": "7610dc3aaf7fb09b9cc428273a8ba15ef8aef495" } "nvim-scissors": { "branch": "main", "commit": "9b4fc66427568b2139480fcc645dd7bb91884ade" }
} }

View file

@ -7,6 +7,9 @@ end
local nmap_leader = function(lhs, rhs, desc) local nmap_leader = function(lhs, rhs, desc)
vim.keymap.set('n', '<Leader>' .. lhs, rhs, { desc = desc }) vim.keymap.set('n', '<Leader>' .. lhs, rhs, { desc = desc })
end end
local unmap = function(lhs, rhs)
vim.keymap.del(lhs, rhs)
end
-- Keymaps ==================================================== -- Keymaps ====================================================
nmap('[p', '<Cmd>exe "put! " . v:register<CR>', 'Paste above') nmap('[p', '<Cmd>exe "put! " . v:register<CR>', 'Paste above')
nmap(']p', '<Cmd>exe "put " . v:register<Cr>', 'Paste below') nmap(']p', '<Cmd>exe "put " . v:register<Cr>', 'Paste below')

View file

@ -6,7 +6,7 @@ return {
keys = 'etovxqpdygfblzhckisuran' keys = 'etovxqpdygfblzhckisuran'
}, },
keys = { keys = {
{ "gw", "<cmd>HopWord<CR>", mode = "n", desc = "Hop to word" }, { "gw", "<cmd>HopWord<CR>", mode = { "n", "x" }, desc = "Hop to word" },
}, },
} }
} }

View file

@ -1,6 +1,17 @@
return { return {
{ 'nvim-mini/mini.completion', version = false }, {
{ 'rafamadriz/friendly-snippets' }, 'saghen/blink.cmp',
dependencies = { 'rafamadriz/friendly-snippets' },
version = '1.*',
opts = {
keymap = { preset = 'super-tab' },
appearance = { nerd_font_variant = 'mono' },
completion = { documentation = { auto_show = true, auto_show_delay_ms = 0 } },
sources = { default = { 'lsp', 'path', 'snippets', 'buffer' } },
fuzzy = { implementation = "prefer_rust_with_warning" },
},
opts_extend = { "sources.default"}
},
{ {
'nvim-mini/mini.snippets', 'nvim-mini/mini.snippets',
opts = function() opts = function()
@ -12,5 +23,14 @@ return {
} }
} }
end end
},
{
'chrisgrieser/nvim-scissors',
opts = { snippetDir = vim.fn.stdpath("config") .. "/snippets" },
keys = {
{ "<C-s>", "<cmd>ScissorsAddNewSnippet<CR>", mode = { "x" }, desc = "Save selection as snippet" },
{ "<C-e>", "<cmd>ScissorsEditSnippet<CR>", mode = { "n", "x" }, desc = "Edit existing snippet" },
},
} }
} }

View file

@ -0,0 +1 @@
{"newplugin":{"body":["return {"," {"," '${1:plugin}',"," },","}"],"prefix":"newplugin"}}

View file

@ -0,0 +1 @@
{"description":"This package.json has been generated by nvim-scissors.","name":"my-snippets","contributes":{"snippets":[{"language":["lua"],"path":"./lua.json"}]}}