mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-26 11:14:08 +00:00
* chore(nvim): remove astronvim and configs * feat(nvim): new, custom nvim configuration
55 lines
1.2 KiB
Lua
55 lines
1.2 KiB
Lua
-- Colorizer for strings.
|
|
|
|
-- Minimise code.
|
|
local set = vim.api.nvim_set_var
|
|
|
|
return {
|
|
"RRethy/vim-hexokinase",
|
|
build = "cd ~/.local/share/nvim/lazy/vim-hexokinase && make hexokinase",
|
|
init = function()
|
|
-- All possible highlighters
|
|
set("Hexokinase_highlighters", {
|
|
"virtual",
|
|
"sign_column",
|
|
"background",
|
|
"backgroundfull",
|
|
-- 'foreground',
|
|
-- 'foregroundfull'
|
|
})
|
|
|
|
-- Patterns to match for all filetypes
|
|
-- Can be a comma separated string or a list of strings
|
|
|
|
-- All possible values
|
|
set("Hexokinase_optInPatterns", {
|
|
"full_hex",
|
|
"triple_hex",
|
|
"rgb",
|
|
"rgba",
|
|
"hsl",
|
|
"hsla",
|
|
"colour_names",
|
|
})
|
|
|
|
-- Filetype specific patterns to match
|
|
-- entry value must be comma seperated list
|
|
set("Hexokinase_ftOptInPatterns", {
|
|
css = "full_hex,rgb,rgba,hsl,hsla,colour_names",
|
|
html = "full_hex,rgb,rgba,hsl,hsla,colour_names",
|
|
})
|
|
|
|
-- Sample value, to keep default behaviour don't define this', variable
|
|
set("Hexokinase_ftEnabled", {
|
|
"css",
|
|
"html",
|
|
"javascript",
|
|
"scss",
|
|
"sass",
|
|
"lua",
|
|
})
|
|
|
|
-- Turn the colors on.
|
|
--vim.cmd('au BufEnter * HexokinaseTurnOn')
|
|
end,
|
|
}
|