diff options
| author | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 17:36:42 +0100 |
|---|---|---|
| committer | Florian Fischer <florian.fischer@muhq.space> | 2024-02-29 17:36:42 +0100 |
| commit | 02fbedbece4c5cb8842577b3ad5d02cfc6a334ee (patch) | |
| tree | fc2c4fb98ebba67d8e8e753a38e6cad05c50d7fd /config | |
| parent | 46ace24b2626097cf449738881d9422c4a72feb1 (diff) | |
| download | dotfiles-02fbedbece4c5cb8842577b3ad5d02cfc6a334ee.tar.gz dotfiles-02fbedbece4c5cb8842577b3ad5d02cfc6a334ee.zip | |
[vis] add more lsp configurations
Diffstat (limited to 'config')
| -rw-r--r-- | config/vis/visrc.lua | 22 |
1 files changed, 17 insertions, 5 deletions
diff --git a/config/vis/visrc.lua b/config/vis/visrc.lua index 65a45c7..20a9a9f 100644 --- a/config/vis/visrc.lua +++ b/config/vis/visrc.lua @@ -14,11 +14,23 @@ require('plugins/vis-ctags') require('plugins/vis-modelines/vis-modelines') local lspc = require('plugins/vis-lspc') if next(lspc) then - lspc.highlight_diagnostics = 'line' - -- lspc.diagnostic_style = 'fore:red' - lspc.logging = true - lspc.ls_map.latex = {name = 'latex', cmd = 'texlab'} - lspc.ls_map.go = {name = 'go', cmd = 'gopls'} + lspc.highlight_diagnostics = 'line' + -- lspc.diagnostic_style = 'fore:red' + lspc.logging = true + lspc.message_level = 2 + lspc.ls_map.latex = { name = 'latex', cmd = 'texlab' } + lspc.ls_map.go = { name = 'go', cmd = 'gopls' } + lspc.ls_map.html = { name = 'html', cmd = 'vscode-html-languageserver --stdio' } + lspc.ls_map.typescript = { name = 'typescript', cmd = 'typescript-language-server --stdio' } + lspc.ls_map.ltex = { + name = 'ltex', + cmd = 'ltex-ls --no-endless', + file_open_hook = function(ls, file) + if not ls.settings then ls.settings = {} end + if not ls.settings.ltex then ls.settings.ltex = {} end + ls.settings.ltex.language = file.spelling_language:gsub('_', '-') or 'en-US' + end + } end local snippets = require('plugins/vis-snippets') |
