diff options
author | christianchiarulli <[email protected]> | 2021-07-09 21:01:23 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-07-09 21:01:23 -0400 |
commit | b8182d5aeecd50ad6a7d4f5b9b1a8ccbd8bbad02 (patch) | |
tree | ffd8fd765b36cf0f4dc353074bf31225beca67ce /lua/lv-which-key/init.lua | |
parent | 0ce8dfd998f85e2b1dd6fa78643884a267460b0e (diff) |
refactor plugin config
Diffstat (limited to 'lua/lv-which-key/init.lua')
-rw-r--r-- | lua/lv-which-key/init.lua | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua index f4551922..6ae12dd3 100644 --- a/lua/lv-which-key/init.lua +++ b/lua/lv-which-key/init.lua @@ -164,10 +164,7 @@ local mappings = { k = { "<cmd>lua vim.lsp.diagnostic.goto_prev({popup_opts = {border = O.lsp.popup_border}})<cr>", "Prev Diagnostic" }, q = { "<cmd>Telescope quickfix<cr>", "Quickfix" }, r = { "<cmd>lua vim.lsp.buf.rename()<cr>", "Rename" }, - s = { - O.plugin.symbol_outline.active and "<cmd>SymbolsOutline<cr>" or "<cmd> Telescope lsp_document_symbols<cr>", - "Document Symbols", - }, + s = { "<cmd> Telescope lsp_document_symbols<cr>", "Document Symbols" }, S = { "<cmd>Telescope lsp_dynamic_workspace_symbols<cr>", "Workspace Symbols", @@ -191,11 +188,6 @@ local mappings = { }, } -if O.plugin.symbol_outline.active then - vim.api.nvim_set_keymap("n", "<leader>o", ":SymbolsOutline<CR>", { noremap = true, silent = true }) - mappings["o"] = "Symbols outline" -end - if O.plugin.ts_playground.active then vim.api.nvim_set_keymap("n", "<leader>Th", ":TSHighlightCapturesUnderCursor<CR>", { noremap = true, silent = true }) mappings[""] = "Highlight Capture" @@ -205,6 +197,7 @@ if O.plugin.zen.active then vim.api.nvim_set_keymap("n", "<leader>z", ":ZenMode<CR>", { noremap = true, silent = true }) mappings["z"] = "Zen" end + if O.plugin.telescope_project.active then -- open projects vim.api.nvim_set_keymap( |