Updates nvim setup
This commit is contained in:
parent
1c38c7b171
commit
6f069d32e1
13 changed files with 285 additions and 4 deletions
24
.config/nvim/lua/plugins/neotree.lua
Normal file
24
.config/nvim/lua/plugins/neotree.lua
Normal 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,
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue