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,13 +591,13 @@ require('lazy').setup({
-- Accept ([y]es) the completion. -- Accept ([y]es) the completion.
-- This will auto-import if your LSP supports it. -- This will auto-import if your LSP supports it.
-- This will expand snippets if the LSP sent a snippet. -- 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, -- If you prefer more traditional completion keymaps,
-- you can uncomment the following lines -- you can uncomment the following lines
--['<CR>'] = cmp.mapping.confirm { select = true }, ['<CR>'] = cmp.mapping.confirm { select = true },
--['<Tab>'] = cmp.mapping.select_next_item(), -- ['<Tab>'] = cmp.mapping.select_next_item(),
--['<S-Tab>'] = cmp.mapping.select_prev_item(), -- ['<S-Tab>'] = cmp.mapping.select_prev_item(),
-- Manually trigger a completion from nvim-cmp. -- Manually trigger a completion from nvim-cmp.
-- Generally you don't need this, because nvim-cmp will display -- Generally you don't need this, because nvim-cmp will display

View File

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

View File

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

View File

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