From 3552958d3647d9f7f016b08119abb1a4bf8e1974 Mon Sep 17 00:00:00 2001 From: Eduardo Cueto-Mendoza Date: Sun, 12 Jan 2025 10:59:24 +0000 Subject: [PATCH] Add Zig and LSPs working --- .config/nvim/lua/user/plugins/03_nvim-cmp.lua | 5 +++++ .config/nvim/lua/user/plugins/lsp/00_mason.lua | 4 ++++ .config/nvim/lua/user/plugins/lsp/01_lspconfig.lua | 3 +++ 3 files changed, 12 insertions(+) diff --git a/.config/nvim/lua/user/plugins/03_nvim-cmp.lua b/.config/nvim/lua/user/plugins/03_nvim-cmp.lua index 28cf16e..3ea0e80 100644 --- a/.config/nvim/lua/user/plugins/03_nvim-cmp.lua +++ b/.config/nvim/lua/user/plugins/03_nvim-cmp.lua @@ -116,5 +116,10 @@ return { require("lspconfig")["pylsp"].setup({ capabilities = capabilities, }) + + -- ZIG + require("lspconfig")["zls"].setup({ + capabilities = capabilities, + }) end, } diff --git a/.config/nvim/lua/user/plugins/lsp/00_mason.lua b/.config/nvim/lua/user/plugins/lsp/00_mason.lua index eaeda3b..bcbd5c6 100644 --- a/.config/nvim/lua/user/plugins/lsp/00_mason.lua +++ b/.config/nvim/lua/user/plugins/lsp/00_mason.lua @@ -27,8 +27,12 @@ return { mason_lspconfig.setup({ -- list of servers for mason to install ensure_installed = { + "bashls", + "clangd", "lua_ls", + "ltex", "pyright", + "zls", }, }) diff --git a/.config/nvim/lua/user/plugins/lsp/01_lspconfig.lua b/.config/nvim/lua/user/plugins/lsp/01_lspconfig.lua index a9f419e..9dcd256 100644 --- a/.config/nvim/lua/user/plugins/lsp/01_lspconfig.lua +++ b/.config/nvim/lua/user/plugins/lsp/01_lspconfig.lua @@ -275,6 +275,9 @@ return { ["zls"] = function() lspconfig["zls"].setup({ capabilities = capabilities, + settings = { + cmd = { "~/.local/bin/zls" }, + }, }) end, })