fix lsp setup error

This commit is contained in:
xfy
2024-10-24 16:50:10 +08:00
parent 3ff3edcdf2
commit b5091f4a19
2 changed files with 3 additions and 1 deletions

View File

@ -1,4 +1,4 @@
local rust_settings = require("rua.config.rust-analyzer")
local rok, rust_settings = pcall(require, "rua.config.rust-analyzer")
return {
{

View File

@ -5,7 +5,9 @@ return {
{ "hrsh7th/cmp-nvim-lsp" },
{ "antosha417/nvim-lsp-file-operations", config = true },
{ "folke/neodev.nvim", opts = {} },
"williamboman/mason-lspconfig.nvim",
},
event = "VeryLazy",
opts = { document_highlight = { enabled = false } },
config = function()
local lspconfig = require("lspconfig")