From 270d57b15f74d27984ccdd86881643b25e7cba10 Mon Sep 17 00:00:00 2001 From: dlond Date: Wed, 21 May 2025 00:09:45 +1200 Subject: [PATCH] fixing weird bug --- lua/custom/plugins/lsp.lua | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lua/custom/plugins/lsp.lua b/lua/custom/plugins/lsp.lua index 3e5c02f2..fe4590f1 100644 --- a/lua/custom/plugins/lsp.lua +++ b/lua/custom/plugins/lsp.lua @@ -17,6 +17,11 @@ return { config = function(_, opts) -- This config function runs AFTER the plugin and its dependencies are loaded. -- It sets up the LSP servers. + local nix_paths_status, nix_paths = pcall(require, 'custom.nix_paths') + if not nix_paths_status then + print('Error loading custom.nix_paths: ' .. (nix_paths or 'Unknown error')) + nix_paths = {} -- Provide an empty table to avoid further errors + end -- Get LSP capabilities, augmented by nvim-cmp local capabilities = require('cmp_nvim_lsp').default_capabilities(vim.lsp.protocol.make_client_capabilities())