Skip to content

Commit

Permalink
Small improvements
Browse files Browse the repository at this point in the history
  • Loading branch information
Jendker committed Dec 10, 2024
1 parent 078363d commit 764b089
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions stow/common/dot-config/nvim/lua/config_plugins/lsp-zero.lua
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,9 @@ local lsp_attach = function(client, bufnr)
nmap('gi', "<cmd>Glance implementations<cr>", '[G]oto [I]mplementation')
nmap('gH', "<cmd>Glance references<cr>", 'Goto references')
nmap('go', "<cmd>Glance type_definitions<cr>", 'Goto type lsp_definitions')
nmap('gR', "<cmd>Glance resume<cr>", 'Goto type lsp_definitions')
nmap('gh', vim.lsp.buf.hover, '[G][H]over documentation')
nmap('gl', vim.diagnostic.open_float, 'Open diagnostics under cursor')

nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction')
Expand Down
2 changes: 1 addition & 1 deletion stow/common/dot-config/nvim/lua/debugging.lua
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ return {
dapui.setup({})

dap.listeners.after.event_initialized['dapui_config'] = dapui.open
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
-- dap.listeners.before.event_terminated['dapui_config'] = dapui.close
dap.listeners.before.event_exited['dapui_config'] = dapui.close

-- Set up adapter specific configs
Expand Down
4 changes: 2 additions & 2 deletions stow/common/dot-config/nvim/lua/keymaps.lua
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ map({"n", "v"}, "<leader>D", [["_D]])
map({"n", "v"}, "<leader>c", [["_c]])
map({"n", "v"}, "<leader>C", [["_C]])
map("n", "<leader>aq", "<cmd>tabclose<cr>", { desc = "t[a]b [q] close" })
map("n", "<leader>ac", "<cmd>tabnew<CR>", { desc = "t[a]b [n]ew"})
map("n", "<leader>an", "<cmd>tabnew<CR>", { desc = "t[a]b [c]reate"})
map("n", "<leader>ac", "<cmd>tabnew<CR>", { desc = "t[a]b [c]reate"})
map("n", "<leader>an", "<cmd>tabnew<CR>", { desc = "t[a]b [n]ew"})
map("n", "yr", "<cmd>let @+ = expand('%:~:.')<cr><cmd>lua vim.notify('Yanked relative path')<cr>", { desc = "Copy relative path", silent = true })
map("n", "yp", "<cmd>let @+ = expand('%:p')<cr><cmd>lua vim.notify('Yanked full path')<cr>", { desc = "Copy full path", silent = true })
map("n", "<leader>tf", function()
Expand Down

0 comments on commit 764b089

Please sign in to comment.