From 99609a247128cfde2a44899d5e12b75bb9ab9a63 Mon Sep 17 00:00:00 2001 From: Natercio Moniz Date: Tue, 28 Jan 2025 12:14:55 +0000 Subject: [PATCH] Minor shortcuta and behaviour tweaks --- init.lua | 8 ++++---- lua/custom/plugins/lsp_signature.lua | 1 + lua/kickstart/plugins/debug.lua | 4 ++-- lua/kickstart/plugins/neo-tree.lua | 4 +++- 4 files changed, 10 insertions(+), 7 deletions(-) diff --git a/init.lua b/init.lua index 37622b5..ef92b2d 100644 --- a/init.lua +++ b/init.lua @@ -591,13 +591,13 @@ 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. - [''] = cmp.mapping.confirm { select = true }, + -- [''] = cmp.mapping.confirm { select = true }, -- If you prefer more traditional completion keymaps, -- you can uncomment the following lines - --[''] = cmp.mapping.confirm { select = true }, - --[''] = cmp.mapping.select_next_item(), - --[''] = cmp.mapping.select_prev_item(), + [''] = cmp.mapping.confirm { select = true }, + -- [''] = cmp.mapping.select_next_item(), + -- [''] = cmp.mapping.select_prev_item(), -- Manually trigger a completion from nvim-cmp. -- Generally you don't need this, because nvim-cmp will display diff --git a/lua/custom/plugins/lsp_signature.lua b/lua/custom/plugins/lsp_signature.lua index b8e195f..cf3ed43 100644 --- a/lua/custom/plugins/lsp_signature.lua +++ b/lua/custom/plugins/lsp_signature.lua @@ -8,6 +8,7 @@ return { handler_opts = { border = 'rounded', }, + toggle_key = '', }, config = function(_, opts) require('lsp_signature').setup(opts) diff --git a/lua/kickstart/plugins/debug.lua b/lua/kickstart/plugins/debug.lua index a37d403..e819068 100644 --- a/lua/kickstart/plugins/debug.lua +++ b/lua/kickstart/plugins/debug.lua @@ -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 { diff --git a/lua/kickstart/plugins/neo-tree.lua b/lua/kickstart/plugins/neo-tree.lua index 53df6ac..e34c0b6 100644 --- a/lua/kickstart/plugins/neo-tree.lua +++ b/lua/kickstart/plugins/neo-tree.lua @@ -15,6 +15,7 @@ return { }, opts = { filesystem = { + hijack_netrw_behavior = 'open_default', window = { mappings = { ['\\'] = 'close_window', @@ -30,6 +31,7 @@ return { window = { mappings = { + [''] = '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 {