feat(nvim): disable netrw
This commit is contained in:
parent
060cb3d7a8
commit
639f1a4eac
4 changed files with 40 additions and 8 deletions
|
|
@ -1,5 +1,28 @@
|
||||||
vim.g.mapleader = ' '
|
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 = {
|
vim.g.lz_n = {
|
||||||
load = function(name)
|
load = function(name)
|
||||||
vim.cmd.packadd((name:match('[^/]+$') or name))
|
vim.cmd.packadd((name:match('[^/]+$') or name))
|
||||||
|
|
|
||||||
|
|
@ -1,5 +1,20 @@
|
||||||
vim.pack.add({
|
vim.pack.add({
|
||||||
'https://github.com/tpope/vim-fugitive',
|
'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',
|
'https://github.com/lewis6991/gitsigns.nvim',
|
||||||
}, { load = function() end })
|
}, { load = function() end })
|
||||||
|
|
||||||
|
|
@ -207,13 +222,6 @@ vim.keymap.set('n', '<leader>gp', function()
|
||||||
end)
|
end)
|
||||||
|
|
||||||
return {
|
return {
|
||||||
{
|
|
||||||
'tpope/vim-fugitive',
|
|
||||||
cmd = { 'Git', 'G', 'Gread', 'Gwrite', 'Gdiffsplit', 'Gvdiffsplit' },
|
|
||||||
after = function()
|
|
||||||
vim.o.statusline = '%{FugitiveStatusline()} ' .. vim.o.statusline
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
{
|
{
|
||||||
'barrettruth/diffs.nvim',
|
'barrettruth/diffs.nvim',
|
||||||
before = function()
|
before = function()
|
||||||
|
|
|
||||||
|
|
@ -1 +0,0 @@
|
||||||
vim.o.statusline = " %{expand('%:~')} %h%m%r%=%c:%l/%L "
|
|
||||||
|
|
@ -46,7 +46,9 @@ opt.matchpairs:append('<:>')
|
||||||
o.number = true
|
o.number = true
|
||||||
o.relativenumber = true
|
o.relativenumber = true
|
||||||
o.signcolumn = 'no'
|
o.signcolumn = 'no'
|
||||||
|
|
||||||
o.statuscolumn = '%s%C %=%{v:relnum?v:relnum:v:lnum} '
|
o.statuscolumn = '%s%C %=%{v:relnum?v:relnum:v:lnum} '
|
||||||
|
o.statusline = " %{len(expand('%'))?expand('%:~').' ':''}%h%m%r%=%c:%l/%L "
|
||||||
|
|
||||||
opt.path:append('**')
|
opt.path:append('**')
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue