Skip to content

Commit 2bf1b60

Browse files
author
0xfa1z
committed
netrw tweaks
1 parent 5aeddfd commit 2bf1b60

File tree

1 file changed

+11
-3
lines changed

1 file changed

+11
-3
lines changed

init.lua

Lines changed: 11 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ vim.g.have_nerd_font = false
102102
vim.opt.number = true
103103
-- You can also add relative line numbers, to help with jumping.
104104
-- Experiment for yourself to see if you like it!
105-
-- vim.opt.relativenumber = true
105+
vim.opt.relativenumber = true
106106

107107
-- Enable mouse mode, can be useful for resizing splits for example!
108108
vim.opt.mouse = 'a'
@@ -126,7 +126,7 @@ vim.opt.ignorecase = true
126126
vim.opt.smartcase = true
127127

128128
-- Keep signcolumn on by default
129-
vim.opt.signcolumn = 'yes'
129+
vim.opt.signcolumn = 'number'
130130

131131
-- Decrease update time
132132
vim.opt.updatetime = 250
@@ -190,6 +190,13 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
190190
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
191191
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
192192

193+
-- Custom key mapping to open netrw
194+
vim.api.nvim_set_keymap('n', '<leader>e', ':Explore<CR>', { noremap = true, silent = true })
195+
196+
-- Enable netrw settings
197+
vim.g.netrw_banner = 0
198+
vim.g.netrw_liststyle = 3
199+
193200
-- [[ Basic Autocommands ]]
194201
-- See `:help lua-guide-autocommands`
195202

@@ -227,6 +234,7 @@ vim.opt.rtp:prepend(lazypath)
227234
require('lazy').setup({
228235
-- NOTE: Plugins can be added with a link (or for a github repo: 'owner/repo' link).
229236
'tpope/vim-sleuth', -- Detect tabstop and shiftwidth automatically
237+
'github/copilot.vim', -- GitHub Copilot integration
230238

231239
-- NOTE: Plugins can also be added by using a table,
232240
-- with the first argument being the link and the following
@@ -784,7 +792,7 @@ require('lazy').setup({
784792
-- Load the colorscheme here.
785793
-- Like many other themes, this one has different styles, and you could load
786794
-- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
787-
vim.cmd.colorscheme 'tokyonight-night'
795+
vim.cmd.colorscheme 'vim'
788796

789797
-- You can configure highlights by doing something like:
790798
vim.cmd.hi 'Comment gui=none'

0 commit comments

Comments
 (0)