35 lines
692 B
Nix
35 lines
692 B
Nix
{
|
|
programs.nixvim.keymaps = [
|
|
{
|
|
mode = "n";
|
|
key = "<leader>lf";
|
|
action = ":lua require('conform').format({ lsp_fallback = true })<CR>";
|
|
options.desc = "Format";
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>ff";
|
|
action = ":Pick files<CR>";
|
|
options.desc = "Search files";
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>/";
|
|
action = ":Pick grep_live<CR>";
|
|
options.desc = "Grep";
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>ed";
|
|
action = ":Oil<CR>";
|
|
options.desc = "File browser";
|
|
}
|
|
{
|
|
mode = "n";
|
|
key = "<leader>gg";
|
|
action = ":LazyGit<CR>";
|
|
options.desc = "Lazygit";
|
|
}
|
|
];
|
|
}
|