summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorYigit Sever2024-08-20 09:30:40 +0200
committerYigit Sever2024-08-20 09:30:40 +0200
commitd0ad91ebf38a31642eccef4c32666fa5023418f8 (patch)
tree66bbc3a756a5146e9c5e30f743f72f7820a2db42 /.config/nvim/lua
parent90c5bebfde12fa50775df97e4405a0b62ced9d40 (diff)
downloaddotfiles-d0ad91ebf38a31642eccef4c32666fa5023418f8.tar.gz
dotfiles-d0ad91ebf38a31642eccef4c32666fa5023418f8.tar.bz2
dotfiles-d0ad91ebf38a31642eccef4c32666fa5023418f8.zip
nvim: lsp add many lang servers
ts/js, html, css, vala
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/plugins/lsp.lua10
1 files changed, 10 insertions, 0 deletions
diff --git a/.config/nvim/lua/plugins/lsp.lua b/.config/nvim/lua/plugins/lsp.lua
index f2bad81..8c08448 100644
--- a/.config/nvim/lua/plugins/lsp.lua
+++ b/.config/nvim/lua/plugins/lsp.lua
@@ -68,6 +68,16 @@ return {
68 local capabilities = vim.lsp.protocol.make_client_capabilities() 68 local capabilities = vim.lsp.protocol.make_client_capabilities()
69 capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities) 69 capabilities = require("cmp_nvim_lsp").default_capabilities(capabilities)
70 70
71 -- misc.
72 local lspconfig = require('lspconfig')
73 local servers = { 'tsserver', 'jsonls', 'eslint', 'cssls', 'html', 'vala_ls' }
74 for _, lsp in pairs(servers) do
75 lspconfig[lsp].setup {
76 on_attach = on_attach,
77 capabilites = capabilities,
78 }
79 end
80
71 -- lua 81 -- lua
72 require("lspconfig")["lua_ls"].setup({ 82 require("lspconfig")["lua_ls"].setup({
73 on_attach = on_attach, 83 on_attach = on_attach,