mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-08-01 16:45:00 +02:00
remove plugin bloat
This commit is contained in:
parent
08ebd34a43
commit
15603354ac
6 changed files with 19 additions and 258 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue