Replace vim-plug with built-in package manager

This commit is contained in:
2026-07-28 12:44:27 -07:00
parent c95d6a5c62
commit dc78af93f9
2 changed files with 22 additions and 41 deletions

View File

@@ -16,7 +16,4 @@ COPY init.vim .
RUN mkdir -p ~/.config/nvim \ RUN mkdir -p ~/.config/nvim \
&& mv ./init.vim ~/.config/nvim && mv ./init.vim ~/.config/nvim
RUN sh -c 'curl -fLo ~/.local/share/nvim/site/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim' RUN nvim -c "lua vim.pack.update()" -c "qall"
RUN nvim -c "PlugInstall" -c "qall" \
&& nvim -c "TSUpdate" -c "qall"

View File

@@ -7,53 +7,37 @@ let g:loaded_netrwPlugin = 1
let &t_TI = "\<Esc>[>4;2m" let &t_TI = "\<Esc>[>4;2m"
let &t_TE = "\<Esc>[>4;m" let &t_TE = "\<Esc>[>4;m"
" Automatically install vim-plug plugin manager lua <<
" https://github.com/junegunn/vim-plug/wiki/tips#automatic-installation vim.pack.add({
let data_dir = has('nvim') ? stdpath('data') . '/site' : '~/.vim' 'https://github.com/nvim-tree/nvim-web-devicons', -- optional
if empty(glob(data_dir . '/autoload/plug.vim')) 'https://github.com/nvim-tree/nvim-tree.lua',
silent execute '!curl -fLo '.data_dir.'/autoload/plug.vim --create-dirs https://raw.githubusercontent.com/junegunn/vim-plug/master/plug.vim'
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
call plug#begin() 'https://github.com/nvim-treesitter/nvim-treesitter',
Plug 'nvim-tree/nvim-web-devicons' " optional 'https://github.com/Mofiqul/dracula.nvim',
Plug 'nvim-tree/nvim-tree.lua'
Plug 'nvim-treesitter/nvim-treesitter', {'do': ':TSUpdate'} 'https://github.com/nvim-lualine/lualine.nvim',
"Plug 'mg979/vim-visual-multi', {'branch': 'master'} 'https://github.com/akinsho/bufferline.nvim',
Plug 'Mofiqul/dracula.nvim' 'https://github.com/nvim-lua/plenary.nvim',
'https://github.com/nvim-telescope/telescope.nvim',
Plug 'nvim-lualine/lualine.nvim' -- For managing lsps
'https://github.com/williamboman/mason.nvim',
Plug 'akinsho/bufferline.nvim', { 'tag': '*' } -- Delete, change and add surrounding pairs
'https://github.com/kylechui/nvim-surround',
Plug 'nvim-lua/plenary.nvim' -- Indent line
Plug 'nvim-telescope/telescope.nvim', { 'branch': '0.1.x' } 'https://github.com/lukas-reineke/indent-blankline.nvim',
" Installation manager for 'ripgrep' search tool 'https://github.com/airblade/vim-gitgutter',
Plug 'iruzo/ripgrep.nvim'
" Not sure if this is useful? -- Highlight syntax and support indent for MoonScript
" Plug 'rafcamlet/nvim-luapad' 'https://github.com/leafo/moonscript-vim',
}, {confirm = false})
" For managing lsps .
Plug 'williamboman/mason.nvim'
" Delete, change and add surrounding pairs
Plug 'kylechui/nvim-surround'
" Indent line
Plug 'lukas-reineke/indent-blankline.nvim'
Plug 'airblade/vim-gitgutter'
" Highlight syntax and support indent for MoonScript
Plug 'leafo/moonscript-vim'
call plug#end()
colorscheme dracula colorscheme dracula
set termguicolors set termguicolors