dylanaraps / wal.vim

🎨 A vim colorscheme for use with wal
MIT License
220 stars 41 forks source link

Packer is better #39

Closed ghost closed 1 year ago

ghost commented 1 year ago

can you add packer plugin manager it's better than the regular vim plug

VehementHam commented 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]]

ghost commented 1 year ago

thanks, bro