summaryrefslogtreecommitdiff
path: root/lua/cshift/plugins/lsp.lua
diff options
context:
space:
mode:
authorKyle Gunger <kgunger12@gmail.com>2024-02-13 17:58:07 -0500
committerKyle Gunger <kgunger12@gmail.com>2024-02-13 17:58:07 -0500
commit3c7ee73a8036cfaba464640999303e157b19ec15 (patch)
tree852f2e51c85c41997f736a04d5a96d5db8efc54c /lua/cshift/plugins/lsp.lua
parenta42bc21a1db924910129a259335fccdeb0080c34 (diff)
parent013dfcae215ae20fe30654247a91a026118deba4 (diff)
merge laptop and desktop configs
Diffstat (limited to 'lua/cshift/plugins/lsp.lua')
-rw-r--r--lua/cshift/plugins/lsp.lua24
1 files changed, 24 insertions, 0 deletions
diff --git a/lua/cshift/plugins/lsp.lua b/lua/cshift/plugins/lsp.lua
new file mode 100644
index 0000000..ebaeab1
--- /dev/null
+++ b/lua/cshift/plugins/lsp.lua
@@ -0,0 +1,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
+}