mirror of
https://github.com/ivuorinen/dotfiles.git
synced 2026-01-30 18:46:45 +00:00
Nvim restart (#9)
* chore(nvim): remove astronvim and configs * feat(nvim): new, custom nvim configuration
This commit is contained in:
54
config/nvim/lua/plugins/vim-hexokinase.lua
Normal file
54
config/nvim/lua/plugins/vim-hexokinase.lua
Normal file
@@ -0,0 +1,54 @@
|
||||
-- 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,
|
||||
}
|
||||
Reference in New Issue
Block a user