diff options
author | adam <56338480+adastx@users.noreply.github.com> | 2022-08-28 11:16:59 +0200 |
---|---|---|
committer | adam <56338480+adastx@users.noreply.github.com> | 2022-08-28 11:16:59 +0200 |
commit | 76457f29ccdab3fac17c410dee4cfa2e655f46d5 (patch) | |
tree | 9e76a4d97cead5b2f7e65993993c880ec089ab04 | |
parent | 4d4d7c1a2929aebe047905e43b79081e9d9b10c6 (diff) |
nvim: enabled some LSP servers
-rw-r--r-- | .config/nvim/lua/setup/lspconfig.lua | 38 |
1 files changed, 28 insertions, 10 deletions
diff --git a/.config/nvim/lua/setup/lspconfig.lua b/.config/nvim/lua/setup/lspconfig.lua index f025d4a..0ec4913 100644 --- a/.config/nvim/lua/setup/lspconfig.lua +++ b/.config/nvim/lua/setup/lspconfig.lua @@ -19,23 +19,41 @@ lspconfig.sumneko_lua.setup { } } } - lspconfig.rust_analyzer.setup { on_attach = on_attach, } - --- local pid = vim.fn.getpid() --- local omnisharp_bin = "mono /home/adam/.local/share/nvim/lsp_servers/omnisharp/omnisharp-mono/OmniSharp.exe" +lspconfig.bashls.setup { + on_attach = on_attach, +} +lspconfig.dockerls.setup { + on_attach = on_attach, +} +lspconfig.yamlls.setup { + on_attach = on_attach, +} +lspconfig.html.setup { + on_attach = on_attach, +} +lspconfig.cssls.setup { + on_attach = on_attach, +} +lspconfig.marksman.setup { + on_attach = on_attach, +} +lspconfig.jsonls.setup { + on_attach = on_attach, +} +lspconfig.tsserver.setup { + on_attach = on_attach, +} lspconfig.omnisharp.setup { + on_attach = on_attach, use_mono = true, +} +lspconfig.texlab.setup { on_attach = on_attach, - -- cmd = { omnisharp_bin, "--languageserver", "--hostPID", tostring(pid) }, } - --- vim.cmd("let g:tex_flavor = 'tex'") --- lspconfig.texlab.setup { --- on_attach = on_attach, --- } +vim.cmd("let g:tex_flavor = 'tex'") local signs = { Error = " ", Warn = " ", Hint = " ", Info = " " } for type, icon in pairs(signs) do |