diff options
Diffstat (limited to 'pkgs/devhell')
-rw-r--r-- | pkgs/devhell/vim/default.nix | 12 |
1 files changed, 11 insertions, 1 deletions
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="\<Esc>[38;2;%lu;%lu;%lum" + let &t_8b="\<Esc>[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 ''; |