mirror of
https://git.disroot.org/FollieHiyuki/dotfiles.git
synced 2024-12-01 11:48:41 -05:00
45 lines
1.6 KiB
Lua
45 lines
1.6 KiB
Lua
|
local fn,api = vim.fn,vim.api
|
||
|
local packer_dir = fn.stdpath('data') .. '/site/pack/packer/start/packer.nvim'
|
||
|
|
||
|
if fn.empty(fn.glob(packer_dir)) > 0 then
|
||
|
fn.system({'git', 'clone', 'https://github.com/wbthomason/packer.nvim', packer_dir})
|
||
|
api.nvim_command('packadd packer.nvim')
|
||
|
end
|
||
|
|
||
|
local packer = require('packer')
|
||
|
local use = packer.use
|
||
|
|
||
|
return packer.startup(
|
||
|
function()
|
||
|
use 'wbthomason/packer.nvim'
|
||
|
|
||
|
-- Appearance / UI
|
||
|
use {
|
||
|
'shaunsingh/nord.nvim',
|
||
|
config = function()
|
||
|
require('modules.nord')
|
||
|
end
|
||
|
}
|
||
|
use {
|
||
|
'norcalli/nvim-colorizer.lua',
|
||
|
event = 'BufRead',
|
||
|
config = function()
|
||
|
require('colorizer').setup(
|
||
|
{'*';},
|
||
|
{
|
||
|
RGB = true; -- #RGB hex codes
|
||
|
RRGGBB = true; -- #RRGGBB hex codes
|
||
|
names = true; -- "Name" codes like Blue
|
||
|
RRGGBBAA = true; -- #RRGGBBAA hex codes
|
||
|
rgb_fn = true; -- CSS rgb() and rgba() functions
|
||
|
hsl_fn = true; -- CSS hsl() and hsla() functions
|
||
|
css = true; -- Enable all CSS features: rgb_fn, hsl_fn, names, RGB, RRGGBB
|
||
|
css_fn = true; -- Enable all CSS *functions*: rgb_fn, hsl_fn
|
||
|
mode = 'background'; -- Set the display mode.
|
||
|
})
|
||
|
vim.cmd('ColorizerReloadAllBuffers')
|
||
|
end
|
||
|
}
|
||
|
end
|
||
|
)
|