fix: correct API calls in lspconfig and utils, ensure proper setup for none-ls
This commit is contained in:
@@ -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()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user