2024-04-11 08:04:03 +01:00
|
|
|
-- if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
|
2024-04-11 07:33:31 +01:00
|
|
|
|
|
|
|
-- Customize None-ls sources
|
|
|
|
|
|
|
|
---@type LazySpec
|
|
|
|
return {
|
|
|
|
"nvimtools/none-ls.nvim",
|
|
|
|
opts = function(_, config)
|
|
|
|
-- config variable is the default configuration table for the setup function call
|
|
|
|
-- local null_ls = require "null-ls"
|
|
|
|
|
|
|
|
-- Check supported formatters and linters
|
|
|
|
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/formatting
|
|
|
|
-- https://github.com/nvimtools/none-ls.nvim/tree/main/lua/null-ls/builtins/diagnostics
|
|
|
|
config.sources = {
|
|
|
|
-- Set a formatter
|
|
|
|
-- null_ls.builtins.formatting.stylua,
|
|
|
|
-- null_ls.builtins.formatting.prettier,
|
|
|
|
}
|
|
|
|
return config -- return final config table
|
|
|
|
end,
|
|
|
|
}
|