grace/dots
dotfiles/nix configs
git clone https://git.gae.moe/grace/dots
70a1581
old_stow_config
1local lint = require ( "lint" ) 2 3local errorformat = 4"%WWARNING: %m,%Z% \\ s% \\ s% \\ s% \\ s% \\ s% \\ s% \\ s% \\ s% \\ sat (stdin) from line %l column %c to line %e column %k" 5lint . linters . westwood = { 6cmd = '/homes/kkasad/share/westwood' , 7stdin = true , 8args = { '-f' , 'machine' , '-' } , 9stream = both , 10ignore_exitcode = false , 11env = nil , 12parser = require ( 'lint.parser' ) . from_errorformat ( errorformat ) 13} 14 15lint . linters_by_ft . c = { "westwood" , "clangtidy" } 16lint . linters_by_ft . cpp = { "westwood" } 17vim . list_extend ( lint . linters_by_ft . c , { "westwood" , "clangtidy" }) 18vim . list_extend ( lint . linters_by_ft . cpp , { "westwood" }) 19 20local ns = lint . get_namespace ( "westwood" ) 21vim . diagnostic . config ({ virtual_text = true } , ns )