refactor: lint and dap
This commit is contained in:
parent
a9cb122592
commit
7785311043
46 changed files with 2453 additions and 0 deletions
23
nivm/settings/keymaps.lua
Normal file
23
nivm/settings/keymaps.lua
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
local opts = { noremap = true, silent = true }
|
||||
|
||||
local term_opts = { silent = true }
|
||||
|
||||
-- Shorten function name
|
||||
local keymap = vim.api.nvim_set_keymap
|
||||
|
||||
|
||||
keymap("n", "c", ":CodeActionMenu<CR>", 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)
|
||||
keymap("n", "<F8>", ':lua require("dap").continue()<CR>', opts)
|
||||
keymap("n", "<F9>", ':lua require("dap").close()<CR> :lua require("dapui").toggle()<CR>', opts)
|
||||
keymap("n", "<F10>", ':lua require("dap").continue()<CR> :lua require("dapui").toggle()<CR>', opts)
|
||||
|
||||
keymap("n", "t", ':lua require("nvim-tree").toggle()<CR>', opts)
|
||||
keymap("n", "f", ':lua require("nvim-tree").focus()<CR>', opts)
|
||||
|
||||
keymap("n", "<F1>", ':BufferLineMoveNext<CR>', opts)
|
||||
keymap("n", "<F2>", ':BufferLineMovePrev<CR>', opts)
|
||||
|
||||
keymap("n", "<F4>", ':lua vim.lsp.buf.format { async = true }<CR>', opts)
|
||||
Loading…
Add table
Add a link
Reference in a new issue