From 123328440266080f6f53df3c8107e97f293d62f0 Mon Sep 17 00:00:00 2001 From: devhell Date: Sat, 10 Jul 2021 13:28:12 +0100 Subject: pkgs/vim: Replace vim-css-color with vim-hexokinase As @aszlig mentioned earlier, this looks like a better plugin. It does everything I need it to. This commit also enables `termguicolors` which wasn't the case prior, and without it `vim-hexokinase` cannot function properly. --- pkgs/devhell/vim/default.nix | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) (limited to 'pkgs') diff --git a/pkgs/devhell/vim/default.nix b/pkgs/devhell/vim/default.nix index 60b7318e..f9746bc5 100644 --- a/pkgs/devhell/vim/default.nix +++ b/pkgs/devhell/vim/default.nix @@ -21,7 +21,7 @@ pkgs.vim_configurable.overrideAttrs (drv: { vim-mucomplete vim-signify vim-toml - vim-css-color + vim-hexokinase ]; opt = [ vimtex ]; }; @@ -48,6 +48,11 @@ pkgs.vim_configurable.overrideAttrs (drv: { set laststatus=2 set signcolumn=number set timeout timeoutlen=5000 ttimeoutlen=100 + if exists('+termguicolors') + let &t_8f="\[38;2;%lu;%lu;%lum" + let &t_8b="\[48;2;%lu;%lu;%lum" + set termguicolors + endif filetype plugin indent on colorscheme tender @@ -79,6 +84,11 @@ pkgs.vim_configurable.overrideAttrs (drv: { " vimtex Settings let g:tex_flavor = 'latex' + " hexokinase Settings + let g:Hexokinase_highlighters = ['backgroundfull'] + let g:Hexokinase_refreshEvents = + \ ['TextChanged', 'TextChangedI', 'InsertLeave', 'BufRead'] + " Autoload autocmd FileType tex :packadd vimtex ''; -- cgit 1.4.1