diff options
| author | Kyren223 <ulmliad223@gmail.com> | 2024-07-05 22:36:25 +0300 |
|---|---|---|
| committer | Kyren223 <ulmliad223@gmail.com> | 2024-07-05 22:36:25 +0300 |
| commit | 9ec1b5f213855c01701ed803983ce59cf29ba155 (patch) | |
| tree | 72459944b33fe039e18c9d0669ca40f5f1568258 | |
| parent | c6a35fedb2814d72f84c56e91cb330bc47a59e19 (diff) | |
Neovim: cleaned some stuff up, added a bunch of TODOs, chaging repo to public
| -rw-r--r-- | .config/nvim/TODO.md | 9 | ||||
| -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 |
4 files changed, 13 insertions, 7 deletions
diff --git a/.config/nvim/TODO.md b/.config/nvim/TODO.md index 2e024ce..380a648 100644 --- a/.config/nvim/TODO.md +++ b/.config/nvim/TODO.md @@ -1,8 +1,15 @@ # Plans for the future -- TODO: Look into bufferline.nvim or cokeline.nvim for "tabs" +- TODO: Look into bufferline.nvim for "tabs" - TODO: Look at configuring Noice.nvim and decide if u like it or not +- TODO: Look at buffer-management plugins that automatically delete old buffers (and also ways to close buffers without exiting nvim, and be able to exit nvim with 1 keypress) +- TODO: Replace obsidian with Neorg +- TODO: Add refactoring keys like <leader>iv for introduce variable, extract method, introduce constant etc +- TODO: Decided which outline-plugin to use (lspsaga or aerial, or smthing else) +- TODO: Finish configuring lsp saga (I think it has supertypes and stuff which aren't in the doc) +- TODO: Remove the vsc*de snippets/completions and make my own luasnip snippets [tutorial](https://www.youtube.com/watch?v=FmHhonPjvvA) +- TODO: Setup [nvim spectre](https://github.com/nvim-pack/nvim-spectre) 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, } |
