nvim: add gentoo syntax

This commit is contained in:
tastytea 2022-08-09 00:19:29 +02:00
parent 58ee0ade7f
commit 2c8986901f
Signed by: tastytea
SSH Key Fingerprint: SHA256:FBkvrOlhq5use1XEttyUGT4bUTDVA1ar9SgIc9P03cM
2 changed files with 23 additions and 0 deletions

View File

@ -26,3 +26,12 @@ vim.api.nvim_create_autocmd('FileType', {
vim.cmd([[startinsert | 1]])
end
})
packer.use {
'https://github.com/gentoo/gentoo-syntax',
requires = { 'https://github.com/vim-syntastic/syntastic' },
config = function()
-- vim.g.syntastic_ebuild_checkers = { 'pkgcheck' }
vim.g.syntastic_sh_checkers = { 'sh', 'checkbashisms' }
end
}

View File

@ -17,6 +17,20 @@ packer.use {
require('nvim-treesitter.install').update({ with_sync = true })
end
}
packer.use {
'https://github.com/vim-syntastic/syntastic',
config = function()
local sl = vim.o.statusline
sl = sl .. '%#warningmsg#'
sl = sl .. '%{SyntasticStatuslineFlag()}'
sl = sl .. '%*'
vim.g.syntastic_always_populate_loc_list = 1
vim.g.syntastic_auto_loc_list = 1
vim.g.syntastic_check_on_open = 1
vim.g.syntastic_check_on_wq = 0
end
}
-- compile and install new plugins when lua files in this dir are written
vim.cmd([[