feat(nvim): disable netrw

This commit is contained in:
Barrett Ruth 2026-03-01 17:28:16 -05:00
parent 060cb3d7a8
commit 639f1a4eac
Signed by: barrett
GPG key ID: A6C96C9349D2FC81
4 changed files with 40 additions and 8 deletions

View file

@ -1,5 +1,28 @@
vim.g.mapleader = ' '
vim.g.loaded_2html_plugin = true
vim.g.loaded_bugreport = true
vim.g.loaded_getscript = true
vim.g.loaded_getscriptPlugin = true
vim.g.loaded_gzip = true
vim.g.loaded_logipat = true
vim.g.loaded_netrw = true
vim.g.loaded_netrwFileHandlers = true
vim.g.loaded_netrwPlugin = true
vim.g.loaded_netrwSettings = true
vim.g.loaded_optwin = true
vim.g.loaded_rplugin = true
vim.g.loaded_rrhelper = true
vim.g.loaded_synmenu = true
vim.g.loaded_tar = true
vim.g.loaded_tarPlugin = true
vim.g.loaded_tohtml = true
vim.g.loaded_tutor = true
vim.g.loaded_vimball = true
vim.g.loaded_vimballPlugin = true
vim.g.loaded_zip = true
vim.g.loaded_zipPlugin = true
vim.g.lz_n = {
load = function(name)
vim.cmd.packadd((name:match('[^/]+$') or name))

View file

@ -1,5 +1,20 @@
vim.pack.add({
'https://github.com/tpope/vim-fugitive',
})
function _G._fugitive_stl()
local s = vim.fn.FugitiveStatusline()
return s ~= '' and s .. ' ' or ''
end
vim.api.nvim_create_autocmd('VimEnter', {
once = true,
callback = function()
vim.o.statusline = ' %{v:lua._fugitive_stl()}' .. vim.o.statusline:sub(2)
end,
})
vim.pack.add({
'https://github.com/lewis6991/gitsigns.nvim',
}, { load = function() end })
@ -207,13 +222,6 @@ vim.keymap.set('n', '<leader>gp', function()
end)
return {
{
'tpope/vim-fugitive',
cmd = { 'Git', 'G', 'Gread', 'Gwrite', 'Gdiffsplit', 'Gvdiffsplit' },
after = function()
vim.o.statusline = '%{FugitiveStatusline()} ' .. vim.o.statusline
end,
},
{
'barrettruth/diffs.nvim',
before = function()

View file

@ -1 +0,0 @@
vim.o.statusline = " %{expand('%:~')} %h%m%r%=%c:%l/%L "

View file

@ -46,7 +46,9 @@ opt.matchpairs:append('<:>')
o.number = true
o.relativenumber = true
o.signcolumn = 'no'
o.statuscolumn = '%s%C %=%{v:relnum?v:relnum:v:lnum} '
o.statusline = " %{len(expand('%'))?expand('%:~').' ':''}%h%m%r%=%c:%l/%L "
opt.path:append('**')