summaryrefslogtreecommitdiff
path: root/.config/nvim
diff options
context:
space:
mode:
authorMatt Turner <mattst88@gmail.com>2021-12-22 15:08:05 -0500
committerMatt Turner <mattst88@gmail.com>2021-12-22 15:08:05 -0500
commit20f9eedcdfc506a0cb65a90c163a173eceada4ec (patch)
tree6d87352c015910e38625ed427639c21bc027e8b7 /.config/nvim
parent22836fdf66674f34af164d28a2245a7c31de973e (diff)
nvim: Enable python-lsp
Diffstat (limited to '.config/nvim')
-rw-r--r--.config/nvim/coc-settings.json67
1 files changed, 67 insertions, 0 deletions
diff --git a/.config/nvim/coc-settings.json b/.config/nvim/coc-settings.json
index 8636c13..18223ed 100644
--- a/.config/nvim/coc-settings.json
+++ b/.config/nvim/coc-settings.json
@@ -17,6 +17,73 @@
"directory": ".ccls-cache"
}
}
+ },
+ "python": {
+ "command": "python",
+ "args": [
+ "-mpylsp",
+ "-vv",
+ "--log-file",
+ "/tmp/lsp_python.log"
+ ],
+ "trace.server": "verbose",
+ "filetypes": [
+ "python"
+ ],
+ "settings": {
+ "pyls": {
+ "enable": true,
+ "trace": {
+ "server": "verbose"
+ },
+ "commandPath": "",
+ "configurationSources": [
+ "pycodestyle"
+ ],
+ "plugins": {
+ "jedi_completion": {
+ "enabled": true
+ },
+ "jedi_hover": {
+ "enabled": true
+ },
+ "jedi_references": {
+ "enabled": true
+ },
+ "jedi_signature_help": {
+ "enabled": true
+ },
+ "jedi_symbols": {
+ "enabled": true,
+ "all_scopes": true
+ },
+ "mccabe": {
+ "enabled": true,
+ "threshold": 15
+ },
+ "preload": {
+ "enabled": true
+ },
+ "pycodestyle": {
+ "enabled": true
+ },
+ "pydocstyle": {
+ "enabled": false,
+ "match": "(?!test_).*\\.py",
+ "matchDir": "[^\\.].*"
+ },
+ "pyflakes": {
+ "enabled": true
+ },
+ "rope_completion": {
+ "enabled": true
+ },
+ "yapf": {
+ "enabled": true
+ }
+ }
+ }
+ }
}
}
}