Minor shortcuta and behaviour tweaks

This commit is contained in:
Natercio Moniz
2025-01-28 12:14:55 +00:00
parent 29c6bf2107
commit 99609a2471
4 changed files with 10 additions and 7 deletions

View File

@@ -591,11 +591,11 @@ require('lazy').setup({
-- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet.
['<C-y>'] = cmp.mapping.confirm { select = true },
-- ['<C-y>'] = cmp.mapping.confirm { select = true },
-- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines
--['<CR>'] = cmp.mapping.confirm { select = true },
['<CR>'] = cmp.mapping.confirm { select = true },
-- ['<Tab>'] = cmp.mapping.select_next_item(),
-- ['<S-Tab>'] = cmp.mapping.select_prev_item(),

View File

@@ -8,6 +8,7 @@ return {
handler_opts = {
border = 'rounded',
},
toggle_key = '<C-k>',
},
config = function(_, opts)
require('lsp_signature').setup(opts)

View File

@@ -94,8 +94,8 @@ return {
}
dap.listeners.after.event_initialized['dapui_config'] = dapui.open
dap.listeners.before.event_terminated['dapui_config'] = dapui.close
dap.listeners.before.event_exited['dapui_config'] = dapui.close
-- dap.listeners.before.event_terminated['dapui_config'] = dapui.close
-- dap.listeners.before.event_exited['dapui_config'] = dapui.close
-- Install golang specific config
require('dap-go').setup {

View File

@@ -15,6 +15,7 @@ return {
},
opts = {
filesystem = {
hijack_netrw_behavior = 'open_default',
window = {
mappings = {
['\\'] = 'close_window',
@@ -30,6 +31,7 @@ return {
window = {
mappings = {
['<C-v>'] = 'open_vsplit',
['Y'] = function(state)
local node = state.tree:get_node()
local filepath = node:get_id()
@@ -37,8 +39,8 @@ return {
local results = {
vim.fn.fnamemodify(filepath, ':.'),
filename,
filepath,
filename,
}
local i = vim.fn.inputlist {