From 26a0660f278d78e049364e69f4ebaa39e8cf1116 Mon Sep 17 00:00:00 2001 From: Kyle Gunger Date: Thu, 9 May 2024 15:14:34 -0400 Subject: trouble --- lua/cshift/plugins/init.lua | 15 +++++++++++++++ lua/cshift/plugins/lsp.lua | 5 ++++- lua/cshift/remaps.lua | 8 ++++++++ 3 files changed, 27 insertions(+), 1 deletion(-) (limited to 'lua') diff --git a/lua/cshift/plugins/init.lua b/lua/cshift/plugins/init.lua index e85aff2..9ca8f14 100644 --- a/lua/cshift/plugins/init.lua +++ b/lua/cshift/plugins/init.lua @@ -13,5 +13,20 @@ return { vim.cmd.colorscheme("tender") end }, + { + "folke/trouble.nvim", + dependencies = { "nvim-tree/nvim-web-devicons" }, + opts = { + position = "right", + signs = { + -- icons / text used for a diagnostic + error = "", + warning = "", + hint = "", + information = "", + other = "", + }, + }, + }, } diff --git a/lua/cshift/plugins/lsp.lua b/lua/cshift/plugins/lsp.lua index ebaeab1..82c3cec 100644 --- a/lua/cshift/plugins/lsp.lua +++ b/lua/cshift/plugins/lsp.lua @@ -10,7 +10,10 @@ return { require("mason-lspconfig").setup({ ensure_installed = { "lua_ls", - "clangd" + "clangd", + "jedi_language_server", + "tsserver", + "rust_analyzer", }, handlers = { diff --git a/lua/cshift/remaps.lua b/lua/cshift/remaps.lua index bfc25b2..16dec81 100644 --- a/lua/cshift/remaps.lua +++ b/lua/cshift/remaps.lua @@ -9,6 +9,14 @@ vim.keymap.set('n', 'sf', function() require("telescope.builtin").find_files() end) +vim.keymap.set('n', 'tt', function() + require("trouble").open("workspace_diagnostics") +end) + +vim.keymap.set('n', 'tq', function() + require("trouble").close() +end) + -- (P)lugins -- cgit v1.2.3