mirror of
https://codeberg.org/leana8959/.files.git
synced 2025-12-06 14:49:14 +00:00
ref(nvim): refactored config structure
This commit is contained in:
parent
76a64639a2
commit
7bbf5ee03b
29 changed files with 23 additions and 81 deletions
45
.config/nvim/after/plugin/iswap.lua
Normal file
45
.config/nvim/after/plugin/iswap.lua
Normal file
|
|
@ -0,0 +1,45 @@
|
|||
require("iswap").setup {
|
||||
-- The keys that will be used as a selection, in order
|
||||
-- ('asdfghjklqwertyuiopzxcvbnm' by default)
|
||||
-- keys = "aoeuhtns",
|
||||
|
||||
-- Grey out the rest of the text when making a selection
|
||||
-- (enabled by default)
|
||||
grey = "disable",
|
||||
|
||||
-- Highlight group for the sniping value (asdf etc.)
|
||||
-- default 'Search'
|
||||
-- hl_snipe = 'ErrorMsg',
|
||||
|
||||
-- Highlight group for the visual selection of terms
|
||||
-- default 'Visual'
|
||||
-- hl_selection = 'WarningMsg',
|
||||
|
||||
-- Highlight group for the greyed background
|
||||
-- default 'Comment'
|
||||
-- hl_grey = 'LineNr',
|
||||
|
||||
-- Post-operation flashing highlight style,
|
||||
-- either 'simultaneous' or 'sequential', or false to disable
|
||||
-- default 'sequential'
|
||||
-- flash_style = false,
|
||||
|
||||
-- Highlight group for flashing highlight afterward
|
||||
-- default 'IncSearch'
|
||||
-- hl_flash = 'ModeMsg',
|
||||
|
||||
-- Move cursor to the other element in ISwap*With commands
|
||||
-- default false
|
||||
-- move_cursor = true,
|
||||
|
||||
-- Automatically swap with only two arguments
|
||||
-- default nil
|
||||
autoswap = true,
|
||||
|
||||
-- Other default options you probably should not change:
|
||||
debug = nil,
|
||||
hl_grey_priority = '1000',
|
||||
}
|
||||
|
||||
vim.keymap.set('n', "s<Left>", ":ISwapNodeWithLeft<CR>", { desc = "Swap argument with left" })
|
||||
vim.keymap.set('n', "s<Right>", ":ISwapNodeWithRight<CR>", { desc = "Swap argument with right" })
|
||||
Loading…
Add table
Add a link
Reference in a new issue