Add trouble.nvim
This commit is contained in:
parent
98bc388c4a
commit
f77edb0163
@ -11,7 +11,8 @@ map <C-b> : w % <Bar> AsyncRun md2pdf "%" <CR>
|
|||||||
map <A-p> : w % <Bar> AsyncRun md2beamer "%" <CR>
|
map <A-p> : w % <Bar> AsyncRun md2beamer "%" <CR>
|
||||||
map <A-b> : w % <Bar> AsyncRun md2docx % <CR>
|
map <A-b> : w % <Bar> AsyncRun md2docx % <CR>
|
||||||
map <C-z> : !zathura %:r.pdf & <CR>
|
map <C-z> : !zathura %:r.pdf & <CR>
|
||||||
inoremap ;b ****<esc>hi
|
inoremap <leader>b ****<esc>hi
|
||||||
|
inoremap <leader>i **<esc>i
|
||||||
command Stab Tabularize /\s\+\zs\s/l1c0
|
command Stab Tabularize /\s\+\zs\s/l1c0
|
||||||
nnoremap ;t :Tabularize /\s\+\zs\s/l1c0<CR>
|
nnoremap ;t :Tabularize /\s\+\zs\s/l1c0<CR>
|
||||||
set tw=1000
|
set tw=1000
|
||||||
|
52
init.lua
52
init.lua
@ -770,7 +770,6 @@ require("lazy").setup({
|
|||||||
-- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`
|
-- 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
|
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
|
priority = 1000, -- make sure to load this before all the other start plugins
|
||||||
--"morhetz/gruvbox",
|
|
||||||
"zenbones-theme/zenbones.nvim",
|
"zenbones-theme/zenbones.nvim",
|
||||||
dependencies = "rktjmp/lush.nvim",
|
dependencies = "rktjmp/lush.nvim",
|
||||||
config = function()
|
config = function()
|
||||||
@ -840,6 +839,57 @@ require("lazy").setup({
|
|||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
"airblade/vim-gitgutter",
|
"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", "<Leader>dg", ":lua require('neogen').generate()<CR>", 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 = {
|
||||||
|
{
|
||||||
|
"<leader>xx",
|
||||||
|
"<cmd>Trouble diagnostics toggle<cr>",
|
||||||
|
desc = "Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xX",
|
||||||
|
"<cmd>Trouble diagnostics toggle filter.buf=0<cr>",
|
||||||
|
desc = "Buffer Diagnostics (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cs",
|
||||||
|
"<cmd>Trouble symbols toggle focus=false<cr>",
|
||||||
|
desc = "Symbols (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>cl",
|
||||||
|
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||||
|
desc = "LSP Definitions / references / ... (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xL",
|
||||||
|
"<cmd>Trouble loclist toggle<cr>",
|
||||||
|
desc = "Location List (Trouble)",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>xQ",
|
||||||
|
"<cmd>Trouble qflist toggle<cr>",
|
||||||
|
desc = "Quickfix List (Trouble)",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
})
|
})
|
||||||
|
|
||||||
require("colorizer").setup()
|
require("colorizer").setup()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user