Minor shortcuta and behaviour tweaks
This commit is contained in:
4
init.lua
4
init.lua
@@ -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(),
|
||||
|
||||
|
||||
@@ -8,6 +8,7 @@ return {
|
||||
handler_opts = {
|
||||
border = 'rounded',
|
||||
},
|
||||
toggle_key = '<C-k>',
|
||||
},
|
||||
config = function(_, opts)
|
||||
require('lsp_signature').setup(opts)
|
||||
|
||||
@@ -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 {
|
||||
|
||||
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user