summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--lua/cshift/plugins/init.lua15
-rw-r--r--lua/cshift/plugins/lsp.lua5
-rw-r--r--lua/cshift/remaps.lua8
3 files changed, 27 insertions, 1 deletions
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 = "<U+F0026>",
+ warning = "<U+F023B>",
+ hint = "<U+EA61>",
+ information = "<U+F05A>",
+ other = "<U+F059>",
+ },
+ },
+ },
}
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', '<leader>sf', function()
require("telescope.builtin").find_files()
end)
+vim.keymap.set('n', '<leader>tt', function()
+ require("trouble").open("workspace_diagnostics")
+end)
+
+vim.keymap.set('n', '<leader>tq', function()
+ require("trouble").close()
+end)
+
-- (P)lugins