summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-25 22:35:27 +0530
committerBrahmajit Das <brahmajit.xyz@gmail.com>2024-03-25 22:46:43 +0530
commit50d8044d617fe349cedb9a624757d3f47480f942 (patch)
tree31a5028506590ecf1bd57640df3cd298202f3cf4
parent1a08f6c9c92b0dda493771ef8bc3690915a03840 (diff)
nvim: plugins: lsp: start clangd and lua-language server by default
Signed-off-by: Brahmajit Das <brahmajit.xyz@gmail.com>
-rw-r--r--lua/plugins/lsp.lua5
1 files changed, 4 insertions, 1 deletions
diff --git a/lua/plugins/lsp.lua b/lua/plugins/lsp.lua
index 43015fd..2ba2690 100644
--- a/lua/plugins/lsp.lua
+++ b/lua/plugins/lsp.lua
@@ -1,4 +1,6 @@
-require 'lspconfig'.lua_ls.setup {
+-- Setup language servers
+local lspconfig = require('lspconfig')
+lspconfig.lua_ls.setup {
settings = {
Lua = {
runtime = {
@@ -24,6 +26,7 @@ require 'lspconfig'.lua_ls.setup {
},
},
}
+lspconfig.clangd.setup {}
-- Global mappings.
-- See `:help vim.diagnostic.*` for documentation on any of the below functions