diff options
Diffstat (limited to '')
| -rw-r--r-- | config/nvim/lua/plugins/lsp_saga.lua | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/config/nvim/lua/plugins/lsp_saga.lua b/config/nvim/lua/plugins/lsp_saga.lua index ab8177f..546c073 100644 --- a/config/nvim/lua/plugins/lsp_saga.lua +++ b/config/nvim/lua/plugins/lsp_saga.lua @@ -1,8 +1,32 @@ return { "nvimdev/lspsaga.nvim", + dependencies = { + "nvim-treesitter/nvim-treesitter", -- optional + "nvim-tree/nvim-web-devicons", -- optional + }, opts = { lightbulb = { enable = false, }, + diagnostic = { + show_layout = "float", + auto_preview = true, + keys = { + exec_action = "o", + quit = "q", + }, + }, + }, + keys = { + { + "<leader>e", + "<cmd>Lspsaga show_buf_diagnostics<cr>", + desc = "Show buffer diagnostic", + }, + { + "<leader>we", + "<cmd>Lspsaga show_workspace_diagnostics<cr>", + desc = "Show workspace diagnostic", + }, }, } |
