configured lf plugin
This commit is contained in:
parent
6f2f634e44
commit
ead9a06e79
1 changed files with 38 additions and 21 deletions
|
@ -8,8 +8,25 @@ return {
|
||||||
vim.g.lf_netrw = 1
|
vim.g.lf_netrw = 1
|
||||||
|
|
||||||
require("lf").setup({
|
require("lf").setup({
|
||||||
escape_quit = false,
|
default_action = "drop", -- default action when `Lf` opens a file
|
||||||
border = "rounded",
|
default_actions = { -- default action keybindings
|
||||||
|
["<C-t>"] = "tabedit",
|
||||||
|
["<C-x>"] = "split",
|
||||||
|
["<C-v>"] = "vsplit",
|
||||||
|
["<C-o>"] = "tab drop",
|
||||||
|
},
|
||||||
|
winblend = 10, -- psuedotransparency level
|
||||||
|
dir = "", -- directory where `lf` starts ('gwd' is git-working-directory, ""/nil is CWD)
|
||||||
|
direction = "float", -- window type: float horizontal vertical
|
||||||
|
border = "shadow", -- border kind: single double shadow curved
|
||||||
|
-- height = fn.float2nr(fn.round(0.75 * o.lines)), -- height of the *floating* window
|
||||||
|
-- width = fn.float2nr(fn.round(0.75 * o.columns)), -- width of the *floating* window
|
||||||
|
escape_quit = true, -- map escape to the quit command (so it doesn't go into a meta normal mode)
|
||||||
|
focus_on_open = true, -- focus the current file when opening Lf (experimental)
|
||||||
|
mappings = true, -- whether terminal buffer mapping is enabled
|
||||||
|
tmux = true, -- tmux statusline can be disabled on opening of Lf
|
||||||
|
default_file_manager = false, -- make lf default file manager
|
||||||
|
disable_netrw_warning = true, -- don't display a message when opening a directory with `default_file_manager` as true
|
||||||
})
|
})
|
||||||
|
|
||||||
-- Set keymap for Lf
|
-- Set keymap for Lf
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue