Closed ghost closed 1 year ago
You can use Packer. This is what I do:
local ensure_packer = function()
local fn = vim.fn
local install_path = fn.stdpath('data')..'/site/pack/packer/start/packer.nvim'
if fn.empty(fn.glob(install_path)) > 0 then
fn.system({'git', 'clone', '--depth', '1', 'https://github.com/wbthomason/packer.nvim', install_path})
vim.cmd [[packadd packer.nvim]]
return true
end
return false
end
local packer_bootstrap = ensure_packer()
if packer_bootstrap then
require('packer').sync()
end
-- Plugins
require('packer').startup(function(use)
use 'wbthomason/packer.nvim'
-- My plugins here
use 'junegunn/goyo.vim'
---use 'ii14/onedark.nvim'
use 'numToStr/Comment.nvim'
use 'dylanaraps/wal.vim'
end)
-- Enable Comment.nvim plugin
require('Comment').setup()
vim.cmd [[colorscheme wal]]
The important lines are use 'dylanaraps/wal.vim'
and vim.cmd [[colorscheme wal]]
thanks, bro
can you add packer plugin manager it's better than the regular vim plug