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
|
|
@ -1,6 +1,7 @@
|
||||||
{
|
{
|
||||||
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
|
"blink.cmp": { "branch": "main", "commit": "327fff91fe6af358e990be7be1ec8b78037d2138" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "02736cf359a3235c6d7d601a2f6bdc909e557513" },
|
"conform.nvim": { "branch": "master", "commit": "02736cf359a3235c6d7d601a2f6bdc909e557513" },
|
||||||
|
"flash.nvim": { "branch": "main", "commit": "fcea7ff883235d9024dc41e638f164a450c14ca2" },
|
||||||
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
"friendly-snippets": { "branch": "main", "commit": "572f5660cf05f8cd8834e096d7b4c921ba18e175" },
|
||||||
"fzf-lua": { "branch": "main", "commit": "a8458b79a957a6e3e217d84106a0fd4b9470ff4c" },
|
"fzf-lua": { "branch": "main", "commit": "a8458b79a957a6e3e217d84106a0fd4b9470ff4c" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "20ad4419564d6e22b189f6738116b38871082332" },
|
"gitsigns.nvim": { "branch": "main", "commit": "20ad4419564d6e22b189f6738116b38871082332" },
|
||||||
|
|
@ -13,6 +14,7 @@
|
||||||
"mini.icons": { "branch": "main", "commit": "284798619aed9f4c1ac1b9417b9a5e3b4b85ef3a" },
|
"mini.icons": { "branch": "main", "commit": "284798619aed9f4c1ac1b9417b9a5e3b4b85ef3a" },
|
||||||
"mini.pairs": { "branch": "main", "commit": "b9aada8c0e59f2b938e98fbf4eae0799eba96ad9" },
|
"mini.pairs": { "branch": "main", "commit": "b9aada8c0e59f2b938e98fbf4eae0799eba96ad9" },
|
||||||
"mini.snippets": { "branch": "main", "commit": "7610dc3aaf7fb09b9cc428273a8ba15ef8aef495" },
|
"mini.snippets": { "branch": "main", "commit": "7610dc3aaf7fb09b9cc428273a8ba15ef8aef495" },
|
||||||
|
"neoscroll.nvim": { "branch": "master", "commit": "f957373912e88579e26fdaea4735450ff2ef5c9c" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "81e676d3203c9eb6e4c0ccf1eba1679296ef923f" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "81e676d3203c9eb6e4c0ccf1eba1679296ef923f" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "a89bfcfd0e44f898341ac8a80ba83ccf6218bef3" },
|
"nvim-lspconfig": { "branch": "master", "commit": "a89bfcfd0e44f898341ac8a80ba83ccf6218bef3" },
|
||||||
"nvim-scissors": { "branch": "main", "commit": "9b4fc66427568b2139480fcc645dd7bb91884ade" },
|
"nvim-scissors": { "branch": "main", "commit": "9b4fc66427568b2139480fcc645dd7bb91884ade" },
|
||||||
|
|
@ -20,5 +22,6 @@
|
||||||
"nvim-treesitter-context": { "branch": "master", "commit": "ec308c7827b5f8cb2dd0ad303a059c945dd21969" },
|
"nvim-treesitter-context": { "branch": "master", "commit": "ec308c7827b5f8cb2dd0ad303a059c945dd21969" },
|
||||||
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
|
"trouble.nvim": { "branch": "main", "commit": "bd67efe408d4816e25e8491cc5ad4088e708a69a" },
|
||||||
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
|
"vim-sleuth": { "branch": "master", "commit": "be69bff86754b1aa5adcbb527d7fcd1635a84080" },
|
||||||
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" }
|
"which-key.nvim": { "branch": "main", "commit": "3aab2147e74890957785941f0c1ad87d0a44c15a" },
|
||||||
|
"yanky.nvim": { "branch": "main", "commit": "04775cc6e10ef038c397c407bc17f00a2f52b378" }
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -11,4 +11,10 @@ return {
|
||||||
event = "BufReadPre",
|
event = "BufReadPre",
|
||||||
opts = {},
|
opts = {},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"karb94/neoscroll.nvim",
|
||||||
|
opts = {
|
||||||
|
duration_multiplier = 0.3,
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -1,12 +1,17 @@
|
||||||
return {
|
return {
|
||||||
{
|
{
|
||||||
'smoka7/hop.nvim',
|
"smoka7/hop.nvim",
|
||||||
version = "*",
|
version = "*",
|
||||||
opts = {
|
opts = {
|
||||||
keys = 'etovxqpdygfblzhckisuran'
|
keys = "etovxqpdygfblzhckisuran",
|
||||||
},
|
},
|
||||||
|
-- stylua: ignore
|
||||||
keys = {
|
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 {
|
return {
|
||||||
{ 'nvim-mini/mini.pairs', opts = {} },
|
{ "nvim-mini/mini.pairs", opts = {} },
|
||||||
{
|
{
|
||||||
'saghen/blink.cmp',
|
"saghen/blink.cmp",
|
||||||
dependencies = { 'rafamadriz/friendly-snippets' },
|
dependencies = { "rafamadriz/friendly-snippets" },
|
||||||
version = '1.*',
|
version = "1.*",
|
||||||
opts = {
|
opts = {
|
||||||
keymap = { preset = 'super-tab' },
|
keymap = { preset = "super-tab" },
|
||||||
appearance = { nerd_font_variant = 'mono' },
|
appearance = { nerd_font_variant = "mono" },
|
||||||
completion = { documentation = { auto_show = true, auto_show_delay_ms = 0 } },
|
completion = {
|
||||||
sources = { default = { 'lsp', 'path', 'snippets', 'buffer' } },
|
documentation = { auto_show = true, auto_show_delay_ms = 0 },
|
||||||
fuzzy = { implementation = "prefer_rust_with_warning" },
|
|
||||||
},
|
},
|
||||||
opts_extend = { "sources.default"}
|
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" },
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
'nvim-mini/mini.snippets',
|
"nvim-mini/mini.snippets",
|
||||||
opts = function()
|
opts = function()
|
||||||
local gen_loader = require('mini.snippets').gen_loader
|
local gen_loader = require("mini.snippets").gen_loader
|
||||||
return {
|
return {
|
||||||
snippets = {
|
snippets = {
|
||||||
gen_loader.from_file(vim.fn.stdpath("config") .. "/snippets/global.json"),
|
gen_loader.from_file(
|
||||||
gen_loader.from_lang()
|
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" },
|
opts = { snippetDir = vim.fn.stdpath("config") .. "/snippets" },
|
||||||
keys = {
|
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