aboutsummaryrefslogtreecommitdiff
path: root/lua/user/opts.lua
diff options
context:
space:
mode:
authorsrdusr <trevorgray@srdusr.com>2023-07-17 21:31:52 +0200
committersrdusr <trevorgray@srdusr.com>2023-07-17 21:31:52 +0200
commit667758965e4a1e1a04ed6a7ebaf6aefc22be96f7 (patch)
treecb82803a17330dd6091a0c4a1f01d9fe106b45e4 /lua/user/opts.lua
parent65a293b86b9fc20b342573a3e0dee1d20c97d610 (diff)
downloaddotfiles-667758965e4a1e1a04ed6a7ebaf6aefc22be96f7.tar.gz
dotfiles-667758965e4a1e1a04ed6a7ebaf6aefc22be96f7.zip
Add Netrw configuration
Diffstat (limited to 'lua/user/opts.lua')
-rw-r--r--lua/user/opts.lua10
1 files changed, 8 insertions, 2 deletions
diff --git a/lua/user/opts.lua b/lua/user/opts.lua
index 9f9293a..bb7f36c 100644
--- a/lua/user/opts.lua
+++ b/lua/user/opts.lua
@@ -47,8 +47,10 @@ vim.o.autochdir = true
-- Colors
vim.opt.termguicolors = true
+-- Clipboard
+vim.opt.clipboard:append({ "unnamedplus" }) -- Install xclip or this will slowdown startup
+
-- Behaviour
-vim.opt.clipboard:append({ "unnamedplus" }) -- Install xclip or this will slowdown startup
vim.opt.backspace = { "start", "eol", "indent" } -- Make backspace work as you would expect.
vim.opt.hidden = true -- Switch between buffers without having to save first.
vim.opt.splitbelow = true -- make split put the new buffer below the current buffer
@@ -246,7 +248,11 @@ vim.opt.sessionoptions = "blank,buffers,curdir,folds,help,tabpages,winsize,winpo
--vim.opt.sessionoptions = "buffers,curdir,folds,help,tabpages,winsize,winpos,terminal"
--vim.opt.sessionoptions:remove({ "blank", "buffers", "globals" })
-vim.opt.clipboard:append({ "unnamedplus" }) -- Install xclip or this will slowdown startup
+-- Netrw file tree
+vim.g.netrw_browse_split = 0
+vim.g.netrw_banner = 0
+vim.g.netrw_winsize = 25
+
-- Cursorline
vim.cmd([[ " Only show cursorline in the current window and in normal mode
augroup cline