Skip to content

Commit

Permalink
nvim/keymaps: add telescope pickers
Browse files Browse the repository at this point in the history
  • Loading branch information
MattSturgeon committed Jul 29, 2024
1 parent e0cb861 commit b31c541
Showing 1 changed file with 47 additions and 5 deletions.
52 changes: 47 additions & 5 deletions nvim/config/keymaps.nix
Original file line number Diff line number Diff line change
Expand Up @@ -103,21 +103,67 @@ in
action = ":Refactor inline_func ";
options.desc = "Inline function";
}

{
mode = "n";
key = "<leader>ff";
action.__raw = "telescope_project_files()";
options.desc = "Find files";
}

{
mode = "n";
key = "<leader>s";
action.__raw = ''
function()
require('telescope.builtin').spell_suggest(
require('telescope.themes').get_cursor({ })
)
end
'';
options.desc = "Spelling suggestions";
}
];

plugins.telescope = {
enable = true;
keymaps = {
"<leader>bb" = {
action = "buffers";
action = "buffers ignore_current_buffer=true sort_mru=true";
options.desc = "List buffers";
};
"<leader>h" = {
action = "help_tags";
options.desc = "Browse help";
};
"<leader>fg" = {
action = "live_grep";
options.desc = "Grep files";
};
"<leader>`" = {
action = "marks";
options.desc = "Browse marks";
};
"<leader>\"" = {
action = "registers";
options.desc = "Browse registers";
};
"<leader>gs" = {
action = "git_status";
options.desc = "Git status";
};
"gr" = {
action = "lsp_references";
options.desc = "Browse references";
};
"gA" = {
action = "diagnostics";
options.desc = "Browse diagnostics";
};
"gs" = {
action = "treesitter";
options.desc = "Browse symbols";
};
};
};

Expand All @@ -140,10 +186,6 @@ in
action = "implementation";
desc = "Goto implementation";
};
gr = {
action = "references";
desc = "Show references";
};
gt = {
# FIXME conflicts with "next tab page" :h gt
action = "type_definition";
Expand Down

0 comments on commit b31c541

Please sign in to comment.