From 9ec1b5f213855c01701ed803983ce59cf29ba155 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 5 Jul 2024 22:36:25 +0300 Subject: Neovim: cleaned some stuff up, added a bunch of TODOs, chaging repo to public --- .config/nvim/TODO.md | 9 ++++++++- .config/nvim/lua/keymaps.lua | 2 -- .config/nvim/lua/plugins/completions.lua | 1 - .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 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' }, '', string.format(':vertical resize +%d vim.keymap.set('v', '<', '', '>gv', {}) - --- TODO: Add refactoring keys like 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', { desc = 'Display Docs' }) vim.keymap.set('n', 'R', ':Lspsaga rename', { desc = '[R]ename' }) + vim.keymap.set('n', 'os', 'Lspsaga outline', { desc = '[T]erminal' }) + vim.keymap.set({ 'n', 'i' }, '', 'Lspsaga code_action', { desc = 'Code Actions' }) vim.keymap.set('n', 'ca', ':Lspsaga code_action', { desc = '[C]ode [A]ctions' }) @@ -41,8 +46,5 @@ return { ) vim.keymap.set({ 'n', 't' }, '', 'Lspsaga term_toggle', { 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, } -- cgit v1.3.1