From 372040d1d77617f2fc14463f75c4ef71ee504737 Mon Sep 17 00:00:00 2001 From: qwjyh Date: Tue, 18 Jun 2024 20:34:25 +0900 Subject: [PATCH] nvim: update: setting up trouble.nvim v3 - just using default configs --- dotfiles/neovim/init.lua | 35 ++++++++++++++++++++++++++++++++++- 1 file changed, 34 insertions(+), 1 deletion(-) diff --git a/dotfiles/neovim/init.lua b/dotfiles/neovim/init.lua index bee781b..6445df9 100644 --- a/dotfiles/neovim/init.lua +++ b/dotfiles/neovim/init.lua @@ -131,7 +131,40 @@ require('lazy').setup({ }, { 'folke/trouble.nvim', - -- config = function + opts = {}, + 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=bottom", + desc = "LSP Definitions / references / ... (Trouble)", + }, + { + "xL", + "Trouble loclist toggle", + desc = "Location List (Trouble)", + }, + { + "xQ", + "Trouble qflist toggle", + desc = "Quickfix List (Trouble)", + }, + }, }, { 'Julian/lean.nvim',