summaryrefslogtreecommitdiff
path: root/lua/cshift/plugins/lsp.lua
blob: ebaeab1d768f2a5e64eb3ca03a13b6686627333e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
return {
	"neovim/nvim-lspconfig",
	dependencies = {
		"williamboman/mason.nvim",
		"williamboman/mason-lspconfig.nvim",
	},

	config = function()
		require("mason").setup()
		require("mason-lspconfig").setup({
			ensure_installed = {
				"lua_ls",
				"clangd"
			},
			
			handlers = {
				function(server_name)
					require("lspconfig")[server_name].setup({})
				end
			}
		})
		
	end
}