mirror of
https://github.com/LunarVim/LunarVim.git
synced 2024-09-21 02:55:09 +02:00
more lush support
This commit is contained in:
parent
52020733da
commit
c71db74574
3 changed files with 55 additions and 29 deletions
|
@ -17,6 +17,7 @@ O = {
|
||||||
extras = false,
|
extras = false,
|
||||||
ignore_case = true,
|
ignore_case = true,
|
||||||
smart_case = true,
|
smart_case = true,
|
||||||
|
lushmode = false,
|
||||||
|
|
||||||
-- @usage pass a table with your desired languages
|
-- @usage pass a table with your desired languages
|
||||||
treesitter = {
|
treesitter = {
|
||||||
|
|
|
@ -214,13 +214,6 @@ local mappings = {
|
||||||
"Workspace Symbols"
|
"Workspace Symbols"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
r = {
|
|
||||||
name = "Replace",
|
|
||||||
f = {
|
|
||||||
"<cmd>lua require('spectre').open_file_search()<cr>", "Current File"
|
|
||||||
},
|
|
||||||
p = {"<cmd>lua require('spectre').open()<cr>", "Project"}
|
|
||||||
},
|
|
||||||
s = {
|
s = {
|
||||||
name = "Search",
|
name = "Search",
|
||||||
b = {"<cmd>Telescope git_branches<cr>", "Checkout branch"},
|
b = {"<cmd>Telescope git_branches<cr>", "Checkout branch"},
|
||||||
|
@ -245,9 +238,23 @@ local mappings = {
|
||||||
name = "Session",
|
name = "Session",
|
||||||
s = {"<cmd>SessionSave<cr>", "Save Session"},
|
s = {"<cmd>SessionSave<cr>", "Save Session"},
|
||||||
l = {"<cmd>SessionLoad<cr>", "Load Session"}
|
l = {"<cmd>SessionLoad<cr>", "Load Session"}
|
||||||
|
},
|
||||||
|
T = {
|
||||||
|
name = "Treesitter",
|
||||||
|
i = {":TSConfigInfo<cr>", "Info"}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
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
|
if O.plugin.trouble.active then
|
||||||
mappings['d'] = {
|
mappings['d'] = {
|
||||||
name = "Diagnostics",
|
name = "Diagnostics",
|
||||||
|
@ -261,6 +268,14 @@ if O.plugin.trouble.active then
|
||||||
end
|
end
|
||||||
|
|
||||||
if O.plugin.gitlinker.active then mappings["gy"] = "Gitlink" end
|
if O.plugin.gitlinker.active then mappings["gy"] = "Gitlink" 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"
|
||||||
|
end
|
||||||
|
|
||||||
if O.plugin.zen.active then
|
if O.plugin.zen.active then
|
||||||
vim.api.nvim_set_keymap("n", "<leader>z", ":ZenMode<CR>",
|
vim.api.nvim_set_keymap("n", "<leader>z", ":ZenMode<CR>",
|
||||||
{noremap = true, silent = true})
|
{noremap = true, silent = true})
|
||||||
|
@ -293,5 +308,14 @@ if O.lang.latex.active then
|
||||||
}
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
if O.lushmode then
|
||||||
|
mappings["L"] = {
|
||||||
|
name = "+Lush",
|
||||||
|
l = {":Lushify<cr>", "Lushify"},
|
||||||
|
t = {":LushRunTutorial<cr>", "Lush Tutorial"},
|
||||||
|
q = {":LushRunQuickstart<cr>", "Lush Quickstart"}
|
||||||
|
}
|
||||||
|
end
|
||||||
|
|
||||||
local wk = require("which-key")
|
local wk = require("which-key")
|
||||||
wk.register(mappings, opts)
|
wk.register(mappings, opts)
|
||||||
|
|
|
@ -390,8 +390,9 @@ return require("packer").startup(function(use)
|
||||||
-- Lush Create Color Schemes
|
-- Lush Create Color Schemes
|
||||||
use {
|
use {
|
||||||
"rktjmp/lush.nvim",
|
"rktjmp/lush.nvim",
|
||||||
cmd = {"LushRunQuickstart", "LushRunTutorial", "Lushify"},
|
event = "VimEnter",
|
||||||
disable = not O.plugin.lush.active,
|
-- cmd = {"LushRunQuickstart", "LushRunTutorial", "Lushify"},
|
||||||
|
-- disable = not O.plugin.lush.active,
|
||||||
}
|
}
|
||||||
-- HTML preview
|
-- HTML preview
|
||||||
use {
|
use {
|
||||||
|
|
Loading…
Reference in a new issue