Compare commits
4 commits
bd29839910
...
94b0d93926
Author | SHA1 | Date | |
---|---|---|---|
94b0d93926 | |||
2dd5f6e02d | |||
bec8f4e2e7 | |||
18f12f9068 |
5 changed files with 58 additions and 45 deletions
|
@ -1,26 +0,0 @@
|
|||
return {
|
||||
{
|
||||
"vifm/vifm.vim",
|
||||
config = function()
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
vim.g.vifm_replace_netrw = 1
|
||||
vim.g.vifm_exec_args = '-c "set vifminfo=" -c "set statusline=" -c "only"'
|
||||
end,
|
||||
cmd = "Vifm",
|
||||
keys = {
|
||||
{ "<leader>E", "<cmd>Vifm<cr>", desc = "buffer file browser" },
|
||||
{ "<leader>vc", ":Vifm " .. vim.fn.stdpath("config") .. "<cr>", desc = "open config" },
|
||||
},
|
||||
event = { "BufEnter" },
|
||||
}, -- integrate file manager
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua", -- integrate file tree
|
||||
config = true,
|
||||
dependencies = { "nvim-tree/nvim-web-devicons", config = true },
|
||||
cmd = "NvimTreeToggle",
|
||||
keys = {
|
||||
{ "<leader>se", "<cmd>NvimTreeToggle<cr>", desc = "filetree", silent = true },
|
||||
},
|
||||
},
|
||||
}
|
|
@ -1,5 +1,29 @@
|
|||
return {
|
||||
-- fuzzy matching
|
||||
{
|
||||
"vifm/vifm.vim",
|
||||
config = function()
|
||||
vim.g.loaded_netrw = 1
|
||||
vim.g.loaded_netrwPlugin = 1
|
||||
vim.g.vifm_replace_netrw = 1
|
||||
vim.g.vifm_exec_args = '-c "set vifminfo=" -c "set statusline=" -c "only"'
|
||||
end,
|
||||
cmd = "Vifm",
|
||||
keys = {
|
||||
{ "<leader>E", "<cmd>Vifm<cr>", desc = "buffer file browser" },
|
||||
{ "<leader>vc", ":Vifm " .. vim.fn.stdpath("config") .. "<cr>", desc = "open config" },
|
||||
},
|
||||
event = { "BufEnter" },
|
||||
}, -- integrate file manager
|
||||
{
|
||||
"nvim-tree/nvim-tree.lua", -- integrate file tree
|
||||
config = true,
|
||||
dependencies = { "nvim-tree/nvim-web-devicons", config = true },
|
||||
cmd = "NvimTreeToggle",
|
||||
keys = {
|
||||
{ "<leader>se", "<cmd>NvimTreeToggle<cr>", desc = "filetree", silent = true },
|
||||
},
|
||||
},
|
||||
-- fuzzy matching picker
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
|
@ -42,22 +42,20 @@ local prose_plugs = {
|
|||
},
|
||||
-- displays prettier md rendering
|
||||
{
|
||||
"MeanderingProgrammer/markdown.nvim",
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
main = "render-markdown",
|
||||
opts = {
|
||||
file_types = { "markdown", "quarto", "pandoc", "vimwiki" },
|
||||
win_options = {
|
||||
conceallevel = {
|
||||
rendered = 2,
|
||||
},
|
||||
},
|
||||
heading = {
|
||||
width = "block",
|
||||
},
|
||||
file_types = { "markdown", "quarto", "pandoc", "vimwiki", "norg", "rmd", "org" },
|
||||
code = {
|
||||
sign = false,
|
||||
width = 'block',
|
||||
right_pad = 1,
|
||||
},
|
||||
},
|
||||
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
|
||||
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, -- if you prefer nvim-web-devicons
|
||||
ft = writing_ft,
|
||||
cmd = "RenderMarkdown",
|
||||
keys = {
|
||||
{
|
||||
"<leader>pp",
|
||||
|
|
|
@ -662,3 +662,5 @@ command! cmp : if expand('%%c') == expand('%%f')
|
|||
\ | echo expand('Comparing files: %%"f ...')
|
||||
\ | cmpinternal %f
|
||||
\ | endif
|
||||
|
||||
" pasting symlinks: al (absolute) or rl (relative)"
|
||||
|
|
|
@ -35,6 +35,7 @@ local keys = {
|
|||
mods = "CTRL",
|
||||
action = act.EmitEvent("ActivatePaneDirection-right"),
|
||||
},
|
||||
{ key = "p", mods = "LEADER", action = act.ActivatePaneDirection("Prev") },
|
||||
{ key = "x", mods = "LEADER", action = act.CloseCurrentPane({ confirm = false }) },
|
||||
{ key = "z", mods = "LEADER", action = act.TogglePaneZoomState },
|
||||
{ key = " ", mods = "LEADER", action = act.RotatePanes("Clockwise") },
|
||||
|
@ -42,11 +43,18 @@ local keys = {
|
|||
{
|
||||
key = "Q",
|
||||
mods = "LEADER",
|
||||
action = act.PaneSelect({ mode = "SwapWithActive" }),
|
||||
action = act.PaneSelect({ mode = "SwapWithActiveKeepFocus" }),
|
||||
},
|
||||
{
|
||||
key = "q",
|
||||
mods = "LEADER|CTRL",
|
||||
action = act.PaneSelect({ mode = "MoveToNewTab" }),
|
||||
},
|
||||
{ key = "c", mods = "LEADER", action = act.SpawnTab("CurrentPaneDomain") },
|
||||
{ key = ",", mods = "LEADER", action = act.MoveTabRelative(-1) },
|
||||
{ key = ".", mods = "LEADER", action = act.MoveTabRelative(1) }, -- workspace selection
|
||||
{ key = ",", mods = "LEADER", action = act.ActivateTabRelative(-1) },
|
||||
{ key = ".", mods = "LEADER", action = act.ActivateTabRelative(1) }, -- workspace selection
|
||||
{ key = "<", mods = "LEADER|SHIFT", action = act.MoveTabRelative(-1) },
|
||||
{ key = ">", mods = "LEADER|SHIFT", action = act.MoveTabRelative(1) }, -- workspace selection
|
||||
{
|
||||
key = "s",
|
||||
mods = "LEADER",
|
||||
|
@ -94,13 +102,20 @@ local keys = {
|
|||
}),
|
||||
},
|
||||
{ key = "e", mods = "LEADER", action = act.EmitEvent("edit-scrollback") },
|
||||
{
|
||||
key = "l",
|
||||
mods = "LEADER",
|
||||
action = act.EmitEvent("ActivatePaneDirection-Right"),
|
||||
},
|
||||
{ key = "a", mods = "CTRL|ALT", action = act.EmitEvent("toggle-leader") },
|
||||
{ key = "t", mods = "LEADER", action = act.EmitEvent("toggle-tabbar") },
|
||||
{
|
||||
key = ":",
|
||||
mods = "LEADER|SHIFT",
|
||||
action = act.PromptInputLine({
|
||||
description = "Tab name: ",
|
||||
action = wezterm.action_callback(function(window, _, line)
|
||||
if line then
|
||||
window:active_tab():set_title(line)
|
||||
end
|
||||
end),
|
||||
}),
|
||||
},
|
||||
{ key = "Enter", mods = "CTRL", action = wezterm.action({ SendString = "\x1b[13;5u" }) },
|
||||
{ key = "Enter", mods = "SHIFT", action = wezterm.action({ SendString = "\x1b[13;2u" }) },
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue