Updates nvim setup

This commit is contained in:
Michel 2025-01-19 17:48:28 +01:00
parent 1c38c7b171
commit 6f069d32e1
13 changed files with 285 additions and 4 deletions

View file

@ -0,0 +1,24 @@
return {
"nvim-neo-tree/neo-tree.nvim",
opts = {
window = {
width = 40,
},
filesystem = {
window = {
mappings = {
["<C-l>"] = function(state)
local node = state.tree:get_node()
if vim.fn.fnamemodify(node.path, ":e") == "opto" then
vim.cmd.Optolith()
return
end
os.execute(string.format('xdg-open "%s" &> /dev/null &', node.path))
end,
},
},
},
},
}