diff --git a/home/modules/neovim/mappings.nix b/home/modules/neovim/mappings.nix index 10c789c8..64976486 100644 --- a/home/modules/neovim/mappings.nix +++ b/home/modules/neovim/mappings.nix @@ -257,15 +257,33 @@ action = "Telescope current_buffer_fuzzy_find"; options.desc = "Grep Buffer"; } + { + mode = "n"; + key = ";"; + action = "%"; + options.desc = "Matching ()[]<>"; + } { mode = "v"; key = ";"; action = ""; options.desc = "Exit Visual Mode"; } + { + mode = "v"; + key = "?"; + action = "Telescope grep_string"; + options.desc = "Find Selection"; + } ]; leader = [ + { + mode = "n"; + key = "l"; + action = "Telescope oldfiles"; + options.desc = "Last Files"; + } { mode = "n"; key = "L"; @@ -296,6 +314,12 @@ action = "Telescope resume"; options.desc = "Last Telescope Picker"; } + { + mode = "n"; + key = ";"; + action = "Telescope command_history"; + options.desc = "Last Commands"; + } { mode = "n"; key = ":"; @@ -425,15 +449,16 @@ action = "+buffers"; } { + # See :h telescope.builtin.buffers() for sorting opts mode = "n"; key = "bb"; - action = "Telescope buffers sort_lastused=true"; # There is also sort_mru=true + action = "Telescope buffers ignore_current_buffer=false sort_mru=true"; options.desc = "List Buffers"; } { mode = "n"; key = ""; - action = "Telescope buffers sort_lastused=true"; + action = "Telescope buffers ignore_current_buffer=false sort_mru=true"; options.desc = "List Buffers"; } { @@ -702,6 +727,7 @@ # options.desc = "Rename LSP symbol"; # } { + # NOTE: There is also Telescope quickfix mode = "n"; key = "ca"; action = "lua vim.lsp.buf.code_action()";