diff options
author | Kyle Gunger <kgunger12@gmail.com> | 2024-05-09 15:14:34 -0400 |
---|---|---|
committer | Kyle Gunger <kgunger12@gmail.com> | 2024-05-09 15:14:34 -0400 |
commit | 26a0660f278d78e049364e69f4ebaa39e8cf1116 (patch) | |
tree | a76883a9236a44d900f405728e172f9cfae38965 /lua/cshift | |
parent | 6d4f997bb8bebf0dc629f3ffa63649cfd170011e (diff) |
trouble
Diffstat (limited to 'lua/cshift')
-rw-r--r-- | lua/cshift/plugins/init.lua | 15 | ||||
-rw-r--r-- | lua/cshift/plugins/lsp.lua | 5 | ||||
-rw-r--r-- | lua/cshift/remaps.lua | 8 |
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 |