feat: migrating neovim
This commit is contained in:
parent
86266f8205
commit
8d5e0e6566
47 changed files with 1964 additions and 222 deletions
93
home-manager/modules/neovim/plugins/flash.nix
Normal file
93
home-manager/modules/neovim/plugins/flash.nix
Normal file
|
|
@ -0,0 +1,93 @@
|
|||
{...}: {
|
||||
programs.nixvim = {
|
||||
plugins.flash = {
|
||||
enable = true;
|
||||
settings = {
|
||||
labels = "rsthnaio";
|
||||
};
|
||||
};
|
||||
|
||||
keymaps = [
|
||||
{
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
key = "s";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("flash").jump()
|
||||
end
|
||||
'';
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Flash";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = [
|
||||
"n"
|
||||
"x"
|
||||
"o"
|
||||
];
|
||||
key = "S";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("flash").treesitter()
|
||||
end
|
||||
'';
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Flash Treesitter";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "o";
|
||||
key = "r";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("flash").remote()
|
||||
end
|
||||
'';
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Flash Remote";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = [
|
||||
"o"
|
||||
"x"
|
||||
];
|
||||
key = "R";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("flash").treesitter_search()
|
||||
end
|
||||
'';
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Treesitter Search";
|
||||
};
|
||||
}
|
||||
|
||||
{
|
||||
mode = "c";
|
||||
key = "<c-s>";
|
||||
action.__raw = ''
|
||||
function()
|
||||
require("flash").toggle()
|
||||
end
|
||||
'';
|
||||
options = {
|
||||
silent = true;
|
||||
desc = "Toggle Flash Search";
|
||||
};
|
||||
}
|
||||
];
|
||||
};
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue