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
|
||||
{
|
||||
"MeanderingProgrammer/render-markdown.nvim",
|
||||
"MeanderingProgrammer/markdown.nvim",
|
||||
main = "render-markdown",
|
||||
opts = {
|
||||
file_types = { "markdown", "quarto", "pandoc", "vimwiki", "norg", "rmd", "org" },
|
||||
code = {
|
||||
sign = false,
|
||||
width = 'block',
|
||||
right_pad = 1,
|
||||
file_types = { "markdown", "quarto", "pandoc", "vimwiki" },
|
||||
win_options = {
|
||||
conceallevel = {
|
||||
rendered = 2,
|
||||
},
|
||||
},
|
||||
heading = {
|
||||
width = "block",
|
||||
},
|
||||
},
|
||||
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",
|
||||
|
|
|
@ -1,29 +1,5 @@
|
|||
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 },
|
||||
},
|
||||
},
|
||||
-- fuzzy matching picker
|
||||
-- fuzzy matching
|
||||
{
|
||||
"nvim-telescope/telescope.nvim",
|
||||
dependencies = {
|
|
@ -662,5 +662,3 @@ command! cmp : if expand('%%c') == expand('%%f')
|
|||
\ | echo expand('Comparing files: %%"f ...')
|
||||
\ | cmpinternal %f
|
||||
\ | endif
|
||||
|
||||
" pasting symlinks: al (absolute) or rl (relative)"
|
||||
|
|
|
@ -35,7 +35,6 @@ 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") },
|
||||
|
@ -43,18 +42,11 @@ local keys = {
|
|||
{
|
||||
key = "Q",
|
||||
mods = "LEADER",
|
||||
action = act.PaneSelect({ mode = "SwapWithActiveKeepFocus" }),
|
||||
},
|
||||
{
|
||||
key = "q",
|
||||
mods = "LEADER|CTRL",
|
||||
action = act.PaneSelect({ mode = "MoveToNewTab" }),
|
||||
action = act.PaneSelect({ mode = "SwapWithActive" }),
|
||||
},
|
||||
{ key = "c", mods = "LEADER", action = act.SpawnTab("CurrentPaneDomain") },
|
||||
{ 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 = ",", mods = "LEADER", action = act.MoveTabRelative(-1) },
|
||||
{ key = ".", mods = "LEADER", action = act.MoveTabRelative(1) }, -- workspace selection
|
||||
{
|
||||
key = "s",
|
||||
mods = "LEADER",
|
||||
|
@ -102,20 +94,13 @@ 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