From 4e6533cf57d457926f17bff79cde25430a14f7bb Mon Sep 17 00:00:00 2001 From: Erik Mertens Date: Thu, 3 Jul 2025 10:50:10 +0200 Subject: [PATCH] - added Netrw shortcut and settings --- init.lua | 2 ++ lua/commands.lua | 3 +++ lua/plugins/whichkey.lua | 9 +++++++++ lua/settings.lua | 6 ++++++ lua/ui.lua | 3 ++- 5 files changed, 22 insertions(+), 1 deletion(-) create mode 100644 lua/commands.lua diff --git a/init.lua b/init.lua index a31775b..a5cec21 100644 --- a/init.lua +++ b/init.lua @@ -5,3 +5,5 @@ require("ui") -- require("vue") require("pluginmanager") + +-- require("commands") diff --git a/lua/commands.lua b/lua/commands.lua new file mode 100644 index 0000000..746a55a --- /dev/null +++ b/lua/commands.lua @@ -0,0 +1,3 @@ +function SayName() + +end diff --git a/lua/plugins/whichkey.lua b/lua/plugins/whichkey.lua index 4699c76..dbfd811 100644 --- a/lua/plugins/whichkey.lua +++ b/lua/plugins/whichkey.lua @@ -10,6 +10,9 @@ return { wk.add({ { "D", group = "Debug" } }) + wk.add({ + { "t", group = "Tree" } + }) end, keys = { { @@ -19,5 +22,11 @@ return { end, desc = "Buffer Local Keymaps (which-key)", }, + { + "tt", ":Lexplore", desc = "Expore current directory" + }, + { + "t.", ":Lexplore %:p:h", desc = "Expore file directory" + } }, } diff --git a/lua/settings.lua b/lua/settings.lua index 990cb25..4782f39 100644 --- a/lua/settings.lua +++ b/lua/settings.lua @@ -51,6 +51,12 @@ vim.o.laststatus = 3 vim.o.breakindent = true vim.o.showbreak = "=>" +-- Netrw settings +vim.g.netrw_keepdir = 0 +vim.g.netrw_winsize = 25 +vim.g.netrw_banner = 0 +vim.g.netrw_localcopydircmd = "cp -r" + -- -- terminal mode -- if jit.os == "Windows" then -- vim.o.shell = [[C:\Users\mertens\AppData\Local\Programs\Git\bin\bash.exe]] diff --git a/lua/ui.lua b/lua/ui.lua index b3bf13d..02fbfd1 100644 --- a/lua/ui.lua +++ b/lua/ui.lua @@ -32,7 +32,8 @@ end if vim.g.neovide then -- vim.o.guifont = "Maple Mono:h13" - vim.o.guifont = "MonaspiceNe Nerd Font" + -- vim.o.guifont = "MonaspiceNe Nerd Font" + vim.o.guifont = "GeistMono Nerd Font:h14" vim.g.neovide_floating_shadow = true vim.g.neovide_floating_z_height = 10 vim.g.neovide_light_angle_degrees = 45