From f77edb01638945867f2abbaf25f2ac5ea60b9ed8 Mon Sep 17 00:00:00 2001 From: Alex Selimov Date: Thu, 12 Dec 2024 19:49:35 -0500 Subject: [PATCH] Add trouble.nvim --- ftplugin/markdown.vim | 3 ++- init.lua | 52 ++++++++++++++++++++++++++++++++++++++++++- 2 files changed, 53 insertions(+), 2 deletions(-) diff --git a/ftplugin/markdown.vim b/ftplugin/markdown.vim index 56631db..99d0d3e 100644 --- a/ftplugin/markdown.vim +++ b/ftplugin/markdown.vim @@ -11,7 +11,8 @@ map : w % AsyncRun md2pdf "%" map : w % AsyncRun md2beamer "%" map : w % AsyncRun md2docx % map : !zathura %:r.pdf & -inoremap ;b ****hi +inoremap b ****hi +inoremap i **i command Stab Tabularize /\s\+\zs\s/l1c0 nnoremap ;t :Tabularize /\s\+\zs\s/l1c0 set tw=1000 diff --git a/init.lua b/init.lua index 6635e21..ef66b4c 100644 --- a/init.lua +++ b/init.lua @@ -770,7 +770,6 @@ require("lazy").setup({ -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme` lazy = false, -- make sure we load this during startup if it is your main colorscheme priority = 1000, -- make sure to load this before all the other start plugins - --"morhetz/gruvbox", "zenbones-theme/zenbones.nvim", dependencies = "rktjmp/lush.nvim", config = function() @@ -840,6 +839,57 @@ require("lazy").setup({ end, }, "airblade/vim-gitgutter", + "tpope/vim-abolish", + { + "danymat/neogen", + setup = { + snippet_engine = "luasnip", + }, + config = function() + require("neogen").setup({}) + local opts = { noremap = true, silent = true } + vim.api.nvim_set_keymap("n", "dg", ":lua require('neogen').generate()", opts) + end, + version = "*", + }, + "dhruvasagar/vim-table-mode", + { + "folke/trouble.nvim", + opts = {}, -- for default options, refer to the configuration section for custom setup. + cmd = "Trouble", + keys = { + { + "xx", + "Trouble diagnostics toggle", + desc = "Diagnostics (Trouble)", + }, + { + "xX", + "Trouble diagnostics toggle filter.buf=0", + desc = "Buffer Diagnostics (Trouble)", + }, + { + "cs", + "Trouble symbols toggle focus=false", + desc = "Symbols (Trouble)", + }, + { + "cl", + "Trouble lsp toggle focus=false win.position=right", + desc = "LSP Definitions / references / ... (Trouble)", + }, + { + "xL", + "Trouble loclist toggle", + desc = "Location List (Trouble)", + }, + { + "xQ", + "Trouble qflist toggle", + desc = "Quickfix List (Trouble)", + }, + }, + }, }) require("colorizer").setup()