Files
nvim/lua/plugins/fm-nvim.lua
T
2024-01-08 11:18:13 +01:00

36 lines
719 B
Lua

-- https://github.com/is0n/fm-nvim
local function setup()
local fm = require("fm-nvim")
fm.setup({
-- UI Options
ui = {
float = {
-- Floating window border (see ':h nvim_open_win')
border = "single",
},
},
-- Terminal commands used w/ file manager (have to be in your $PATH)
cmds = {
nnn_cmd = "n",
},
})
vim.keymap.set(
"n",
"<leader>fe",
function()
local file = vim.fn.expand("%:p")
if file ~= "" then
vim.cmd.Lf(file)
else
vim.cmd.Lf()
end
end
)
end
return setup