feat: improve nvim keymaps, add trouble
This commit is contained in:
parent
d42d294c95
commit
76534ab4cb
13 changed files with 315 additions and 20 deletions
|
|
@ -4,8 +4,11 @@ local term_opts = { silent = true }
|
|||
|
||||
-- Shorten function name
|
||||
local keymap = vim.api.nvim_set_keymap
|
||||
--vim.lsp.handlers["textDocument/codeAction"] = require'lspactions'.codeaction
|
||||
--vim.cmd [[ nnoremap <leader>af :lua require'lspactions'.code_action()<CR> ]]
|
||||
|
||||
keymap("n", "c", ":CodeActionMenu<CR>", opts)
|
||||
keymap("n", "<M-CR>", ":CodeActionMenu<CR>", opts)
|
||||
keymap("n", "<C-f>", "<cmd>TroubleToggle<CR>", term_opts)
|
||||
keymap("n", "<F5>", ':lua require("dap").toggle_breakpoint()<CR>', opts)
|
||||
keymap("n", "<F6>", ':lua require("dap").step_over()<CR>', opts)
|
||||
keymap("n", "<F7>", ':lua require("dap").step_into()<CR>', opts)
|
||||
|
|
@ -26,3 +29,10 @@ vim.keymap.set("n", "ff", builtin.find_files, {})
|
|||
vim.keymap.set("n", "fg", builtin.live_grep, {})
|
||||
vim.keymap.set("n", "fb", builtin.buffers, {})
|
||||
vim.keymap.set("n", "fh", builtin.help_tags, {})
|
||||
|
||||
require("trouble").setup {
|
||||
action_keys = {
|
||||
--remove the fucking stupid keymap amk
|
||||
open_tab = {}
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue