From 50d8044d617fe349cedb9a624757d3f47480f942 Mon Sep 17 00:00:00 2001 From: Brahmajit Das Date: Mon, 25 Mar 2024 22:35:27 +0530 Subject: nvim: plugins: lsp: start clangd and lua-language server by default Signed-off-by: Brahmajit Das --- lua/plugins/lsp.lua | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'lua') 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 -- cgit v1.2.3