- added Netrw shortcut and settings
This commit is contained in:
2
init.lua
2
init.lua
@@ -5,3 +5,5 @@ require("ui")
|
|||||||
-- require("vue")
|
-- require("vue")
|
||||||
|
|
||||||
require("pluginmanager")
|
require("pluginmanager")
|
||||||
|
|
||||||
|
-- require("commands")
|
||||||
|
3
lua/commands.lua
Normal file
3
lua/commands.lua
Normal file
@@ -0,0 +1,3 @@
|
|||||||
|
function SayName()
|
||||||
|
|
||||||
|
end
|
@@ -10,6 +10,9 @@ return {
|
|||||||
wk.add({
|
wk.add({
|
||||||
{ "<leader>D", group = "Debug" }
|
{ "<leader>D", group = "Debug" }
|
||||||
})
|
})
|
||||||
|
wk.add({
|
||||||
|
{ "<leader>t", group = "Tree" }
|
||||||
|
})
|
||||||
end,
|
end,
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
@@ -19,5 +22,11 @@ return {
|
|||||||
end,
|
end,
|
||||||
desc = "Buffer Local Keymaps (which-key)",
|
desc = "Buffer Local Keymaps (which-key)",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<leader>tt", ":Lexplore<cr>", desc = "Expore current directory"
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<leader>t.", ":Lexplore %:p:h<cr>", desc = "Expore file directory"
|
||||||
|
}
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
@@ -51,6 +51,12 @@ vim.o.laststatus = 3
|
|||||||
vim.o.breakindent = true
|
vim.o.breakindent = true
|
||||||
vim.o.showbreak = "=>"
|
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
|
-- -- terminal mode
|
||||||
-- if jit.os == "Windows" then
|
-- if jit.os == "Windows" then
|
||||||
-- vim.o.shell = [[C:\Users\mertens\AppData\Local\Programs\Git\bin\bash.exe]]
|
-- vim.o.shell = [[C:\Users\mertens\AppData\Local\Programs\Git\bin\bash.exe]]
|
||||||
|
@@ -32,7 +32,8 @@ end
|
|||||||
|
|
||||||
if vim.g.neovide then
|
if vim.g.neovide then
|
||||||
-- vim.o.guifont = "Maple Mono:h13"
|
-- 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_shadow = true
|
||||||
vim.g.neovide_floating_z_height = 10
|
vim.g.neovide_floating_z_height = 10
|
||||||
vim.g.neovide_light_angle_degrees = 45
|
vim.g.neovide_light_angle_degrees = 45
|
||||||
|
Reference in New Issue
Block a user