mirror of
https://github.com/zoriya/flake.git
synced 2026-06-05 19:45:58 +00:00
Add wordmotion & splitjoin
This commit is contained in:
@@ -6,5 +6,32 @@ return {
|
||||
after = function()
|
||||
require("nvim-surround").setup({})
|
||||
end,
|
||||
}
|
||||
},
|
||||
|
||||
{
|
||||
"vim-wordmotion",
|
||||
lazy = false,
|
||||
load = function() end,
|
||||
keys = {
|
||||
-- This overrides the default ge & gw but i never used them.
|
||||
{ "gw", "<plug>WordMotion_w", desc = "Next small world", mode = { "n", "x", "o" } },
|
||||
{ "ge", "<plug>WordMotion_e", desc = "Next end of small world", mode = { "n", "x", "o" } },
|
||||
{ "gb", "<plug>WordMotion_b", desc = "Previous small world", mode = { "n", "x", "o" } },
|
||||
{ "igw", "<plug>WordMotion_iw", desc = "inner small word", mode = { "x", "o" } },
|
||||
{ "agw", "<plug>WordMotion_aw", desc = "a small word (with white-space)", mode = { "x", "o" } },
|
||||
},
|
||||
after = function()
|
||||
vim.g.wordmotion_nomap = true
|
||||
end,
|
||||
},
|
||||
|
||||
{
|
||||
"increment-activator",
|
||||
lazy = false,
|
||||
load = function() end,
|
||||
keys = {
|
||||
{ "<C-A>", desc = "Increment" },
|
||||
{ "<C-X>", desc = "Decrement" },
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
@@ -88,7 +88,9 @@ vim.api.nvim_create_autocmd("TextYankPost", {
|
||||
desc = 'Highlight when yanking (copying) text',
|
||||
group = vim.api.nvim_create_augroup('highlight-yank', { clear = true }),
|
||||
callback = function()
|
||||
vim.highlight.on_yank()
|
||||
vim.highlight.on_yank({
|
||||
higroup = 'Visual',
|
||||
})
|
||||
end,
|
||||
})
|
||||
|
||||
|
||||
Reference in New Issue
Block a user