Update .config/nvim/lazy-lock.json
Update .config/nvim/lua/plugin/00_colorscheme.lua Update .config/nvim/lua/plugin/10_hop.lua Update .config/nvim/lua/plugin/20_completion.lua Add .config/nvim/lua/plugin/35_yanky.lua
This commit is contained in:
parent
d463a7b8c9
commit
48524be17d
5 changed files with 77 additions and 25 deletions
|
|
@ -11,4 +11,10 @@ return {
|
|||
event = "BufReadPre",
|
||||
opts = {},
|
||||
},
|
||||
{
|
||||
"karb94/neoscroll.nvim",
|
||||
opts = {
|
||||
duration_multiplier = 0.3,
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,12 +1,17 @@
|
|||
return {
|
||||
{
|
||||
'smoka7/hop.nvim',
|
||||
"smoka7/hop.nvim",
|
||||
version = "*",
|
||||
opts = {
|
||||
keys = 'etovxqpdygfblzhckisuran'
|
||||
keys = "etovxqpdygfblzhckisuran",
|
||||
},
|
||||
-- stylua: ignore
|
||||
keys = {
|
||||
{ "gw", "<cmd>HopWord<CR>", mode = { "n", "x" }, desc = "Hop to word" },
|
||||
{ "gw", "<cmd>HopWordMW<CR>", mode = { "n", "x", "o" }, desc = "hop to word" },
|
||||
{ "gc", "<cmd>HopChar1MW<CR>", mode = { "n", "x", "o" }, desc = "hop to char" },
|
||||
{ "gl", "<cmd>HopLineStartMW<CR>", mode = { "n", "x", "o" }, desc = "hop to word" },
|
||||
{ "gn", "<cmd>HopNodes<CR>", mode = { "n", "x", "o" }, desc = "hop nodes" },
|
||||
{ "gp", "<cmd>HopPatternMW<CR>", mode = { "n", "x", "o" }, desc = "hop to pattern" },
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
|
|
|||
|
|
@ -1,37 +1,54 @@
|
|||
return {
|
||||
{ 'nvim-mini/mini.pairs', opts = {} },
|
||||
{ "nvim-mini/mini.pairs", opts = {} },
|
||||
{
|
||||
'saghen/blink.cmp',
|
||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
||||
version = '1.*',
|
||||
"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' } },
|
||||
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" },
|
||||
cmdline = {
|
||||
keymap = { preset = "inherit" },
|
||||
completion = { menu = { auto_show = true } },
|
||||
},
|
||||
},
|
||||
opts_extend = { "sources.default"}
|
||||
opts_extend = { "sources.default" },
|
||||
},
|
||||
{
|
||||
'nvim-mini/mini.snippets',
|
||||
"nvim-mini/mini.snippets",
|
||||
opts = function()
|
||||
local gen_loader = require('mini.snippets').gen_loader
|
||||
local gen_loader = require("mini.snippets").gen_loader
|
||||
return {
|
||||
snippets = {
|
||||
gen_loader.from_file(vim.fn.stdpath("config") .. "/snippets/global.json"),
|
||||
gen_loader.from_lang()
|
||||
}
|
||||
gen_loader.from_file(
|
||||
vim.fn.stdpath("config") .. "/snippets/global.json"
|
||||
),
|
||||
gen_loader.from_lang(),
|
||||
},
|
||||
}
|
||||
end
|
||||
end,
|
||||
},
|
||||
{
|
||||
'chrisgrieser/nvim-scissors',
|
||||
"chrisgrieser/nvim-scissors",
|
||||
opts = { snippetDir = vim.fn.stdpath("config") .. "/snippets" },
|
||||
keys = {
|
||||
{ "<leader>sa", "<cmd>ScissorsAddNewSnippet<CR>", mode = { "n", "x" }, desc = "Save selection as snippet" },
|
||||
{ "<leader>se", "<cmd>ScissorsEditSnippet<CR>", mode = { "n", "x" }, desc = "Edit existing snippet" },
|
||||
{
|
||||
"<leader>sa",
|
||||
"<cmd>ScissorsAddNewSnippet<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Save selection as snippet",
|
||||
},
|
||||
{
|
||||
"<leader>se",
|
||||
"<cmd>ScissorsEditSnippet<CR>",
|
||||
mode = { "n", "x" },
|
||||
desc = "Edit existing snippet",
|
||||
},
|
||||
},
|
||||
}
|
||||
},
|
||||
}
|
||||
|
||||
|
|
|
|||
21
private_dot_config/nvim/lua/plugin/35_yanky.lua
Normal file
21
private_dot_config/nvim/lua/plugin/35_yanky.lua
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
return {
|
||||
{
|
||||
"gbprod/yanky.nvim",
|
||||
keys = {
|
||||
{ "y", "<Plug>(YankyYank)" },
|
||||
{ "p", "<Plug>(YankyPutAfter)", mode = { "n", "x" } },
|
||||
{ "P", "<Plug>(YankyPutBefore)", mode = { "n", "x" } },
|
||||
{ "[p", "<Plug>(YankyPutIndentBeforeLinewise)", mode = "n" },
|
||||
{ "]p", "<Plug>(YankyPutIndentAfterLinewise)", mode = "n" },
|
||||
{ ">p", "<Plug>(YankyPutIndentAfterShiftRight)", mode = "n" },
|
||||
{ ">P", "<Plug>(YankyPutIndentBeforeShiftRight)", mode = "n" },
|
||||
{ "<p", "<Plug>(YankyPutIndentAfterShiftLeft)", mode = "n" },
|
||||
{ "<P", "<Plug>(YankyPutIndentBeforeShiftLeft)", mode = "n" },
|
||||
{ "<c-p>", "<Plug>(YankyPreviousEntry)", mode = "n" },
|
||||
{ "<c-n>", "<Plug>(YankyNextEntry)", mode = "n" },
|
||||
},
|
||||
opts = {
|
||||
preserve_cursor_position = { enabled = true },
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue