32 lines
605 B
Nix
32 lines
605 B
Nix
{...}: {
|
|
programs.nixvim = {
|
|
globals = {
|
|
mapleader = " ";
|
|
maplocalleader = " ";
|
|
};
|
|
keymaps = [
|
|
{
|
|
mode = ["n" "v"];
|
|
key = "<SPACE>";
|
|
action = "<NOP>";
|
|
options.silent = true;
|
|
}
|
|
|
|
{
|
|
mode = "n";
|
|
key = "<LEADER>,";
|
|
action = "A,<ESC>";
|
|
options.silent = true;
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<LEADER>sf";
|
|
action.__raw = "require('telescope.builtin').find_files";
|
|
options = {
|
|
silent = true;
|
|
desc = "[S]earch [F]iles";
|
|
};
|
|
}
|
|
];
|
|
};
|
|
}
|