fix: correct API calls in lspconfig and utils, ensure proper setup for none-ls

This commit is contained in:
2025-05-30 00:31:36 +02:00
parent a36b1e8310
commit d161d5f421
2 changed files with 22 additions and 16 deletions

View File

@@ -1,17 +1,23 @@
-- none-ls
local nb = require('none-ls').builtins
require('none-ls').setup({
sources = {
nb.formatting.alejandra,
nb.code_actions.statix,
nb.diagnostics.cppcheck,
nb.diagnostics.deadnix,
nb.diagnostics.statix,
nb.diagnostics.eslint,
nb.completion.spell,
},
})
local status_ok_nls, none_ls_module = pcall(require, "none-ls")
if not status_ok_nls then
vim.notify("none-ls plugin not found or failed to load. Check Nix config and plugin paths.", vim.log.levels.WARN)
else
local nb = none_ls_module.builtins
none_ls_module.setup({
sources = {
nb.formatting.alejandra,
nb.code_actions.statix,
nb.diagnostics.cppcheck,
nb.diagnostics.deadnix,
nb.diagnostics.statix,
nb.diagnostics.eslint,
nb.completion.spell,
},
debug = false, -- You can set this to true for more verbose output from none-ls
})
vim.notify("none-ls setup processed from utils.lua", vim.log.levels.INFO)
end
require("gitsigns").setup()