vim: update the way I load lua code

parent dcc2af68
require 'nvim-colorizer'
-- https://github.com/norcalli/nvim-colorizer.lua/issues/4#issuecomment-543682160
require 'colorizer'.setup ({
'*';
'!vim';
}, {
css = true;
})
if exists(':ColorizerAttachToBuffer')
finish
endif
if has('nvim') && exists('*luaeval')
" https://github.com/norcalli/nvim-colorizer.lua/issues/4#issuecomment-543682160
lua << EOF
require 'colorizer'.setup ({
'*';
'!vim';
}, {
mode = 'foreground';
css = true;
})
EOF
endif
" Load all lua code
if has('nvim') && exists('*luaeval')
lua require 'init'
endif
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment