feat(nvim): add leap.nvim and leap-spooky.nvim

This commit is contained in:
Moritz Böhme 2023-07-15 12:44:02 +02:00
parent 8d528f9814
commit 0f5f81539b
No known key found for this signature in database
GPG key ID: 970C6E89EB0547A9
5 changed files with 85 additions and 1 deletions

View file

@ -243,6 +243,25 @@ with builtins;
event = [ "BufReadPost" "BufNewFile" ];
conf = "require('Comment').setup()";
}
{
plugin = leap-nvim;
lazy = false;
conf = ''
require("leap").add_default_mappings()
'';
}
{
plugin = leap-spooky-nvim;
lazy = false;
conf = ''
require("leap-spooky").setup()
'';
dependencies = [
{
plugin = leap-nvim;
}
];
}
{
plugin = telekasten-nvim;
dependencies = [

View file

@ -1,9 +1,48 @@
require("mini.align").setup()
require("mini.surround").setup()
require("mini.move").setup()
require("mini.pairs").setup()
require("mini.starter").setup()
require("mini.surround").setup({
-- Add custom surroundings to be used on top of builtin ones. For more
-- information with examples, see `:h MiniSurround.config`.
custom_surroundings = nil,
-- Duration (in ms) of highlight when calling `MiniSurround.highlight()`
highlight_duration = 500,
-- Module mappings. Use `''` (empty string) to disable one.
mappings = {
add = "gSa", -- Add surrounding in Normal and Visual modes
delete = "gSd", -- Delete surrounding
find = "gSf", -- Find surrounding (to the right)
find_left = "gSF", -- Find surrounding (to the left)
highlight = "gSh", -- Highlight surrounding
replace = "gSr", -- Replace surrounding
update_n_lines = "gSn", -- Update `n_lines`
suffix_last = "l", -- Suffix to search with "prev" method
suffix_next = "n", -- Suffix to search with "next" method
},
-- Number of lines within which surrounding is searched
n_lines = 20,
-- Whether to respect selection type:
-- - Place surroundings on separate lines in linewise mode.
-- - Place surroundings on each line in blockwise mode.
respect_selection_type = false,
-- How to search for surrounding (first inside current line, then inside
-- neighborhood). One of 'cover', 'cover_or_next', 'cover_or_prev',
-- 'cover_or_nearest', 'next', 'prev', 'nearest'. For more details,
-- see `:h MiniSurround.config`.
search_method = "cover",
-- Whether to disable showing non-error feedback
silent = false,
})
require("mini.tabline").setup()
local tabline_current = vim.api.nvim_get_hl(0, { name = "MiniTablineCurrent" })
vim.api.nvim_set_hl(0, "MiniTablineCurrent", {