Improve intellisense

master
Hektor Misplon 2023-04-07 22:57:41 +02:00
parent 581bf4cdff
commit 488c8781ea
1 changed files with 105 additions and 14 deletions

View File

@ -12,6 +12,21 @@
"coc.preferences.formatOnType": true, "coc.preferences.formatOnType": true,
"coc.preferences.formatOnSave": true, "coc.preferences.formatOnSave": true,
// Markdown
"markdownlint.config": {
"heading-style": {
"style": "atx"
},
"ul-style": {
"style": "asterisk"
}
},
/**
* Language server & diagnostics
*/
// Language server
"languageserver": { "languageserver": {
// "racket": { // "racket": {
// "command": "racket", // "command": "racket",
@ -42,23 +57,80 @@
// "settings": { ... } // "settings": { ... }
}, },
"R": { "R": {
"enable": true, "enable": true,
"command": "/usr/bin/R", "command": "/usr/bin/R",
"args": [ "args": ["--slave", "-e", "languageserver::run()"],
"--slave", "filetypes": ["r"]
"-e", },
"languageserver::run()" "prolog-lsp": {
], "command": "swipl",
"filetypes": [ "args": ["-g", "use_module(library(lsp_server)).", "-g", "lsp_server:main", "-t", "halt", "--", "stdio"],
"r" "filetypes": ["prolog"]
]
} }
}, },
"diagnostic.messageTarget": "echo", "jedi.workspace.extraPaths": [
"signature.target": "echo", "/home/h/.local/lib/python3.8/site-packages",
"diagnostic.errorSign": "⚠", "/home/h/.local/lib/python3.9/site-packages",
"diagnostic.warningSign": "⚠ ", "/home/h/.local/lib/python3.10/site-packages",
"/home/h/.conda/envs/ml-2223/lib/python3.10/site-packages",
"/home/h/.conda/envs/nlp-2223/lib/python3.10/site-packages"
],
// Diagnostics
"diagnostic.infoSign": "🛈", "diagnostic.infoSign": "🛈",
"diagnostic-languageserver.filetypes": {
"python": "pylint",
"systemd": "systemd-analyze"
},
"diagnostic-languageserver.linters": {
"pylint": {
"sourceName": "pylint",
"command": "pylint",
"debounce": 100,
"args": [
"--output-format",
"text",
"--score",
"no",
"--msg-template",
"'{line}:{column}:{category}:{msg} ({msg_id}:{symbol})'",
"%file"
],
"formatPattern": [
"^(\\d+?):(\\d+?):([a-z]+?):(.*)$",
{
"line": 1,
"column": 2,
"endColumn": 2,
"security": 3,
"message": 4
}
],
"rootPatterns": ["pyproject.toml", "setup.py", ".git"],
"securities": {
"informational": "hint",
"refactor": "info",
"convention": "info",
"warning": "warning",
"error": "error",
"fatal": "error"
},
"offsetColumn": 1,
"offsetColumnEnd": 1,
"formatLines": 1
}
},
// Set up autopep8
"diagnostic-languageserver.formatters": {
"autopep8": {
"command": "autopep8",
"args": ["-"]
}
},
"diagnostic-languageserver.formatFiletypes": {
"python": "autopep8"
},
"suggest.autoTrigger": "trigger", "suggest.autoTrigger": "trigger",
"emmet.includeLanguages": { "javascript": "javascriptreact" }, "emmet.includeLanguages": { "javascript": "javascriptreact" },
"javascript.suggestionActions.enabled": true, "javascript.suggestionActions.enabled": true,
@ -69,4 +141,23 @@
// Add BibTex file for coc-bibtex autocompletion // Add BibTex file for coc-bibtex autocompletion
"list.source.bibtex.files": ["~/.wiki/references.bib", "./*.bib"], "list.source.bibtex.files": ["~/.wiki/references.bib", "./*.bib"],
"bibtex.silent": true, "bibtex.silent": true,
// Adjust floating menus
"hover.floatConfig": {
"border": true,
"highlight": "Normal"
},
"signature.floatConfig": {
"border": true,
"highlight": "Normal"
},
"diagnostic.floatConfig": {
"border": true,
"highlight": "Normal"
},
"suggest.pumFloatConfig": {
"border": true,
"highlight": "Normal"
},
} }