summaryrefslogtreecommitdiff
path: root/lua/lv-which-key/init.lua
diff options
context:
space:
mode:
authorchristianchiarulli <[email protected]>2021-07-06 11:30:01 -0400
committerchristianchiarulli <[email protected]>2021-07-06 11:30:01 -0400
commit15603354acdc5ab88a5eb0d70a7b3e17a1792efe (patch)
tree385435f9853e10809383b0308077af1129232d90 /lua/lv-which-key/init.lua
parent08ebd34a43abd139321bd34dfe70c0b632835746 (diff)
remove plugin bloat
Diffstat (limited to 'lua/lv-which-key/init.lua')
-rw-r--r--lua/lv-which-key/init.lua43
1 files changed, 7 insertions, 36 deletions
diff --git a/lua/lv-which-key/init.lua b/lua/lv-which-key/init.lua
index acc342c4..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",
@@ -275,12 +250,8 @@ end
-- end
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.gitlinker.active then
- mappings["gy"] = "Gitlink"
+ 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