Compare commits
No commits in common. "94b0d93926d11f3e0c8b4f718fc254e5c10bb7f7" and "bd29839910faef3a17a2863e5db9756947ad7f7f" have entirely different histories.
94b0d93926
...
bd29839910
5 changed files with 45 additions and 58 deletions
26
nvim/.config/nvim/lua/plugins/filebrowsers.lua
Normal file
26
nvim/.config/nvim/lua/plugins/filebrowsers.lua
Normal file
|
@ -0,0 +1,26 @@
|
||||||
|
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 },
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
|
@ -42,20 +42,22 @@ local prose_plugs = {
|
||||||
},
|
},
|
||||||
-- displays prettier md rendering
|
-- displays prettier md rendering
|
||||||
{
|
{
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
"MeanderingProgrammer/markdown.nvim",
|
||||||
main = "render-markdown",
|
main = "render-markdown",
|
||||||
opts = {
|
opts = {
|
||||||
file_types = { "markdown", "quarto", "pandoc", "vimwiki", "norg", "rmd", "org" },
|
file_types = { "markdown", "quarto", "pandoc", "vimwiki" },
|
||||||
code = {
|
win_options = {
|
||||||
sign = false,
|
conceallevel = {
|
||||||
width = 'block',
|
rendered = 2,
|
||||||
right_pad = 1,
|
},
|
||||||
},
|
},
|
||||||
|
heading = {
|
||||||
|
width = "block",
|
||||||
|
},
|
||||||
},
|
},
|
||||||
name = "render-markdown", -- Only needed if you have another plugin named markdown.nvim
|
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
|
dependencies = { "nvim-treesitter/nvim-treesitter", "nvim-tree/nvim-web-devicons" }, -- if you prefer nvim-web-devicons
|
||||||
ft = writing_ft,
|
ft = writing_ft,
|
||||||
cmd = "RenderMarkdown",
|
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>pp",
|
"<leader>pp",
|
||||||
|
|
|
@ -1,29 +1,5 @@
|
||||||
return {
|
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",
|
"nvim-telescope/telescope.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
|
@ -662,5 +662,3 @@ command! cmp : if expand('%%c') == expand('%%f')
|
||||||
\ | echo expand('Comparing files: %%"f ...')
|
\ | echo expand('Comparing files: %%"f ...')
|
||||||
\ | cmpinternal %f
|
\ | cmpinternal %f
|
||||||
\ | endif
|
\ | endif
|
||||||
|
|
||||||
" pasting symlinks: al (absolute) or rl (relative)"
|
|
||||||
|
|
|
@ -35,7 +35,6 @@ local keys = {
|
||||||
mods = "CTRL",
|
mods = "CTRL",
|
||||||
action = act.EmitEvent("ActivatePaneDirection-right"),
|
action = act.EmitEvent("ActivatePaneDirection-right"),
|
||||||
},
|
},
|
||||||
{ key = "p", mods = "LEADER", action = act.ActivatePaneDirection("Prev") },
|
|
||||||
{ key = "x", mods = "LEADER", action = act.CloseCurrentPane({ confirm = false }) },
|
{ key = "x", mods = "LEADER", action = act.CloseCurrentPane({ confirm = false }) },
|
||||||
{ key = "z", mods = "LEADER", action = act.TogglePaneZoomState },
|
{ key = "z", mods = "LEADER", action = act.TogglePaneZoomState },
|
||||||
{ key = " ", mods = "LEADER", action = act.RotatePanes("Clockwise") },
|
{ key = " ", mods = "LEADER", action = act.RotatePanes("Clockwise") },
|
||||||
|
@ -43,18 +42,11 @@ local keys = {
|
||||||
{
|
{
|
||||||
key = "Q",
|
key = "Q",
|
||||||
mods = "LEADER",
|
mods = "LEADER",
|
||||||
action = act.PaneSelect({ mode = "SwapWithActiveKeepFocus" }),
|
action = act.PaneSelect({ mode = "SwapWithActive" }),
|
||||||
},
|
|
||||||
{
|
|
||||||
key = "q",
|
|
||||||
mods = "LEADER|CTRL",
|
|
||||||
action = act.PaneSelect({ mode = "MoveToNewTab" }),
|
|
||||||
},
|
},
|
||||||
{ key = "c", mods = "LEADER", action = act.SpawnTab("CurrentPaneDomain") },
|
{ key = "c", mods = "LEADER", action = act.SpawnTab("CurrentPaneDomain") },
|
||||||
{ key = ",", mods = "LEADER", action = act.ActivateTabRelative(-1) },
|
{ key = ",", mods = "LEADER", action = act.MoveTabRelative(-1) },
|
||||||
{ key = ".", mods = "LEADER", action = act.ActivateTabRelative(1) }, -- workspace selection
|
{ key = ".", mods = "LEADER", action = act.MoveTabRelative(1) }, -- workspace selection
|
||||||
{ key = "<", mods = "LEADER|SHIFT", action = act.MoveTabRelative(-1) },
|
|
||||||
{ key = ">", mods = "LEADER|SHIFT", action = act.MoveTabRelative(1) }, -- workspace selection
|
|
||||||
{
|
{
|
||||||
key = "s",
|
key = "s",
|
||||||
mods = "LEADER",
|
mods = "LEADER",
|
||||||
|
@ -102,20 +94,13 @@ local keys = {
|
||||||
}),
|
}),
|
||||||
},
|
},
|
||||||
{ key = "e", mods = "LEADER", action = act.EmitEvent("edit-scrollback") },
|
{ 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 = "a", mods = "CTRL|ALT", action = act.EmitEvent("toggle-leader") },
|
||||||
{ key = "t", mods = "LEADER", action = act.EmitEvent("toggle-tabbar") },
|
{ 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 = "CTRL", action = wezterm.action({ SendString = "\x1b[13;5u" }) },
|
||||||
{ key = "Enter", mods = "SHIFT", action = wezterm.action({ SendString = "\x1b[13;2u" }) },
|
{ key = "Enter", mods = "SHIFT", action = wezterm.action({ SendString = "\x1b[13;2u" }) },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue