Skip to content
Snippets Groups Projects
Commit 8296acb7 authored by Henrik Tjäder's avatar Henrik Tjäder
Browse files

Add linting to markdomn

parent 26f9cc04
No related branches found
No related tags found
No related merge requests found
......@@ -6,5 +6,84 @@
"rootPatterns": ["compile_flags.txt", "compile_commands.json", ".git/", ".hg/"],
"filetypes": ["c", "cpp", "objc", "objcpp"]
}
},
// diagnostic-languageserver
"diagnostic-languageserver.filetypes": {
"vim": "vint",
"email": "languagetool",
"markdown": ["languagetool", "write-good", "proselint", "alex" ],
"text": [ "write-good", "proselint", "alex" ],
"sh": "shellcheck"
},
"diagnostic-languageserver.formatFiletypes": {
"lua": "lua-format",
"sh": "shfmt"
},
"diagnostic-languageserver.linters": {
"proselint": {
"command": "proselint",
"isStdout": true,
"isStderr": false,
"debounce": 100,
"args": ["-"],
"offsetLine": 0,
"offsetColumn": 0,
"sourceName": "proselint",
"formatLines": 1,
"formatPattern": [
"^[^:]+:(\\d+):(\\d+):(\\s)(.*)$",
{
"line": 1,
"column": 2,
"security": 3,
"message": 4
}
],
"securities": {
" ": "info"
}
},
"alex": {
"command": "alex",
"debounce": 200,
"isStderr": true,
"args": ["--stdin"],
"offsetLine": 0,
"offsetColumn": 0,
"sourceName": "alex",
"formatLines": 1,
"formatPattern": [
"^\\s*(\\d+):(\\d+)-(\\d+):(\\d+)\\s{2}([a-z]+)\\s{2}(.*?)\\s{2,}([a-z-]+)\\s{2,}([a-z-]+)$",
{
"line": 1,
"column": 2,
"endLine": 3,
"endColumn": 4,
"security" : 5,
"message": 6
}
],
"securities" : {
"warning": "warning",
"error": "error"
}
},
"languagetool": {
"command": "languagetool",
"debounce": 200,
"args": ["%filepath"],
"offsetLine": 0,
"offsetColumn": 0,
"sourceName": "languagetool",
"formatLines": 2,
"formatPattern": [
"^\\d+?\\.\\)\\s+Line\\s+(\\d+),\\s+column\\s+(\\d+),\\s+([^\\n]+)\nMessage:\\s+(.*)(\\r|\\n)*$",
{
"line": 1,
"column": 2,
"message": [4, 3]
}
]
}
}
}
......@@ -292,3 +292,11 @@ Munns
Naur
EBFN
OO
preprocess
dot2tex
ranksep
nodesep
Aparicio
enums
SLOC
prepopulates
......@@ -36,6 +36,8 @@ else
Plug 'spf13/vim-colors'
" PaperColor theme
Plug 'NLKNguyen/papercolor-theme'
" Add support for json with comments
Plug 'kevinoid/vim-jsonc'
endif
" Ack, similar like grep
......@@ -720,12 +722,16 @@ nnoremap <silent> <leader>p :<C-u>CocListResume<CR>
" Rust Coc needs
" :CocInstall coc-rust-analyzer coc-json coc-markdownlint coc-yaml coc-python coc-vimtex
"
" For text linting to work via coc-diagnostic, install
" yay -S languagetool, alex, proselint, write-good
let g:coc_global_extensions = [
\'coc-json',
\'coc-rust-analyzer',
\'coc-markdownlint',
\'coc-yaml',
\'coc-python',
\'coc-diagnostic',
\'coc-vimtex']
" Coc END
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment