diff options
Diffstat (limited to '.config/nvim/lua')
| -rw-r--r-- | .config/nvim/lua/keymaps.lua | 2 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/completions.lua | 1 | ||||
| -rw-r--r-- | .config/nvim/lua/plugins/lsp-saga.lua | 8 |
3 files changed, 5 insertions, 6 deletions
diff --git a/.config/nvim/lua/keymaps.lua b/.config/nvim/lua/keymaps.lua index 3b0f4aa..e8e2b29 100644 --- a/.config/nvim/lua/keymaps.lua +++ b/.config/nvim/lua/keymaps.lua @@ -27,5 +27,3 @@ vim.keymap.set({ 'n', 't' }, '<C-Right>', string.format(':vertical resize +%d<CR -- Keep selection after < and > vim.keymap.set('v', '<', '<gv', {}) vim.keymap.set('v', '>', '>gv', {}) - --- TODO: Add refactoring keys like <leader>iv for introduce variable, extract method, introduce constant etc diff --git a/.config/nvim/lua/plugins/completions.lua b/.config/nvim/lua/plugins/completions.lua index 610511e..0244f1d 100644 --- a/.config/nvim/lua/plugins/completions.lua +++ b/.config/nvim/lua/plugins/completions.lua @@ -30,7 +30,6 @@ return { end, }, window = { - -- TODO: remove border for completions completion = cmp.config.window.bordered(), documentation = cmp.config.window.bordered(), }, diff --git a/.config/nvim/lua/plugins/lsp-saga.lua b/.config/nvim/lua/plugins/lsp-saga.lua index 35c0a3a..c028d84 100644 --- a/.config/nvim/lua/plugins/lsp-saga.lua +++ b/.config/nvim/lua/plugins/lsp-saga.lua @@ -18,12 +18,17 @@ return { height = 0.7, width = 0.7, }, + outline = { + layout = 'float', + }, }) local diagnostic = require('lspsaga.diagnostic') vim.keymap.set('n', 'K', ':Lspsaga hover_doc<cr>', { desc = 'Display Docs' }) vim.keymap.set('n', 'R', ':Lspsaga rename<cr>', { desc = '[R]ename' }) + vim.keymap.set('n', '<leader>os', '<cmd>Lspsaga outline<cr>', { desc = '[T]erminal' }) + vim.keymap.set({ 'n', 'i' }, '<M-Enter>', '<cmd>Lspsaga code_action<cr><Esc>', { desc = 'Code Actions' }) vim.keymap.set('n', '<leader>ca', ':Lspsaga code_action<cr><Esc>', { desc = '[C]ode [A]ctions' }) @@ -41,8 +46,5 @@ return { ) vim.keymap.set({ 'n', 't' }, '<A-t>', '<cmd>Lspsaga term_toggle<cr>', { desc = '[T]erminal' }) - - -- TODO: use require(lspsaga.symbol.winbar).get_bar() - -- and add it to lualine rather than have it at the top of the screen which is a bit annoying end, } |
