Added configuration to miniclue
This commit is contained in:
parent
3b854f82a8
commit
89a44a347e
1 changed files with 55 additions and 1 deletions
|
|
@ -1,3 +1,4 @@
|
||||||
|
{lib, ...}:
|
||||||
{
|
{
|
||||||
plugins = {
|
plugins = {
|
||||||
mini = {
|
mini = {
|
||||||
|
|
@ -16,7 +17,6 @@
|
||||||
basics = { };
|
basics = { };
|
||||||
bracketed = { };
|
bracketed = { };
|
||||||
bufremove = { };
|
bufremove = { };
|
||||||
clue = { };
|
|
||||||
deps = { };
|
deps = { };
|
||||||
diff = { };
|
diff = { };
|
||||||
extra = { };
|
extra = { };
|
||||||
|
|
@ -44,6 +44,60 @@
|
||||||
fuzzy = { };
|
fuzzy = { };
|
||||||
test = { };
|
test = { };
|
||||||
};
|
};
|
||||||
|
|
||||||
|
luaConfig.post = ''
|
||||||
|
local miniclue = require('mini.clue')
|
||||||
|
miniclue.setup({
|
||||||
|
triggers = {
|
||||||
|
-- Leader triggers
|
||||||
|
{ mode = 'n', keys = '<Leader>' },
|
||||||
|
{ mode = 'x', keys = '<Leader>' },
|
||||||
|
|
||||||
|
-- Built-in completion
|
||||||
|
{ mode = 'i', keys = '<C-x>' },
|
||||||
|
|
||||||
|
-- `g` key
|
||||||
|
{ mode = 'n', keys = 'g' },
|
||||||
|
{ mode = 'x', keys = 'g' },
|
||||||
|
|
||||||
|
-- Marks
|
||||||
|
{ mode = 'n', keys = "'" },
|
||||||
|
{ mode = 'n', keys = '`' },
|
||||||
|
{ mode = 'x', keys = "'" },
|
||||||
|
{ mode = 'x', keys = '`' },
|
||||||
|
|
||||||
|
-- Registers
|
||||||
|
{ mode = 'n', keys = '"' },
|
||||||
|
{ mode = 'x', keys = '"' },
|
||||||
|
{ mode = 'i', keys = '<C-r>' },
|
||||||
|
{ mode = 'c', keys = '<C-r>' },
|
||||||
|
|
||||||
|
-- Window commands
|
||||||
|
{ mode = 'n', keys = '<C-w>' },
|
||||||
|
|
||||||
|
-- `z` key
|
||||||
|
{ mode = 'n', keys = 'z' },
|
||||||
|
{ mode = 'x', keys = 'z' },
|
||||||
|
},
|
||||||
|
|
||||||
|
clues = {
|
||||||
|
-- Enhance this by adding descriptions for <Leader> mapping groups
|
||||||
|
miniclue.gen_clues.builtin_completion(),
|
||||||
|
miniclue.gen_clues.g(),
|
||||||
|
miniclue.gen_clues.marks(),
|
||||||
|
miniclue.gen_clues.registers(),
|
||||||
|
miniclue.gen_clues.windows(),
|
||||||
|
miniclue.gen_clues.z(),
|
||||||
|
},
|
||||||
|
|
||||||
|
window = {
|
||||||
|
config = {},
|
||||||
|
delay = 500,
|
||||||
|
scroll_down = '<C-d>';
|
||||||
|
scroll_up = '<C-u>';
|
||||||
|
},
|
||||||
|
})
|
||||||
|
'';
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue