diff options
Diffstat (limited to 'lua/lv-which-key')
| -rw-r--r-- | lua/lv-which-key/init.lua | 42 | 
1 files changed, 9 insertions, 33 deletions
| diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua index 084be113..5fb3c92d 100644 --- a/lua/lv-which-key/init.lua +++ b/lua/lv-which-key/init.lua @@ -72,12 +72,7 @@ vim.api.nvim_set_keymap(  --                         ":NvimTreeToggle<CR>",  --                         {noremap = true, silent = true}) --- telescope or snap -if O.plugin.snap.active then -  vim.api.nvim_set_keymap("n", "<Leader>f", ":Snap find_files<CR>", { noremap = true, silent = true }) -else -  vim.api.nvim_set_keymap("n", "<Leader>f", ":Telescope find_files<CR>", { noremap = true, silent = true }) -end +vim.api.nvim_set_keymap("n", "<Leader>f", ":Telescope find_files<CR>", { noremap = true, silent = true })  -- dashboard  vim.api.nvim_set_keymap("n", "<Leader>;", ":Dashboard<CR>", { noremap = true, silent = true }) @@ -101,7 +96,7 @@ local mappings = {    b = {      name = "Buffers",      j = { "<cmd>BufferPick<cr>", "jump to buffer" }, -    f = { O.plugin.snap.active and "<cmd>Snap buffers<cr>" or "<cmd>Telescope buffers<cr>", "Find buffer" }, +    f = { "<cmd>Telescope buffers<cr>", "Find buffer" },      w = { "<cmd>BufferWipeout<cr>", "wipeout buffer" },      e = {        "<cmd>BufferCloseAllButCurrent<cr>", @@ -224,21 +219,12 @@ local mappings = {      name = "Search",      b = { "<cmd>Telescope git_branches<cr>", "Checkout branch" },      c = { "<cmd>Telescope colorscheme<cr>", "Colorscheme" }, -    -- d = { -    --     "<cmd>Telescope lsp_document_diagnostics<cr>", -    --     "Document Diagnostics" -    -- }, -    -- D = { -    --     "<cmd>Telescope lsp_workspace_diagnostics<cr>", -    --     "Workspace Diagnostics" -    -- }, -    f = { O.plugin.snap.active and "<cmd>Snap find_files<cr>" or "<cmd>Telescope find_files<cr>", "Find File" }, +    f = { "<cmd>Telescope find_files<cr>", "Find File" },      h = { "<cmd>Telescope help_tags<cr>", "Find Help" }, -    -- m = {"<cmd>Telescope marks<cr>", "Marks"},      M = { "<cmd>Telescope man_pages<cr>", "Man Pages" }, -    r = { O.plugin.snap.active and "<cmd>Snap oldfiles<cr>" or "<cmd>Telescope oldfiles<cr>", "Open Recent File" }, +    r = { "<cmd>Telescope oldfiles<cr>", "Open Recent File" },      R = { "<cmd>Telescope registers<cr>", "Registers" }, -    t = { O.plugin.snap.active and "<cmd>Snap live_grep<cr>" or "<cmd>Telescope live_grep<cr>", "Text" }, +    t = { "<cmd>Telescope live_grep<cr>", "Text" },    },    S = {      name = "Session", @@ -251,17 +237,6 @@ local mappings = {    },  } -if O.plugin.spectre.active then -  mappings["r"] = { -    name = "Replace", -    f = { -      "<cmd>lua require('spectre').open_file_search()<cr>", -      "Current File", -    }, -    p = { "<cmd>lua require('spectre').open()<cr>", "Project" }, -  } -end -  -- if O.plugin.trouble.active then  --   mappings["d"] = {  --     name = "Diagnostics", @@ -274,8 +249,9 @@ end  --   }  -- end -if O.plugin.gitlinker.active then -  mappings["gy"] = "Gitlink" +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 @@ -295,7 +271,7 @@ if O.plugin.telescope_project.active then    -- open projects    vim.api.nvim_set_keymap(      "n", -    "<leader>p", +    "<leader>P",      ":lua require'telescope'.extensions.project.project{}<CR>",      { noremap = true, silent = true }    ) | 
