linuxware/programs/neovim/lua/plugins/none-ls.lua

22 lines
707 B
Lua
Raw Normal View History

2024-04-04 15:23:10 -03:00
-- Customize None-ls sources
---@type LazySpec
return {
2024-04-04 15:23:10 -03:00
"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
2024-04-04 15:23:10 -03:00
-- 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.nixfmt,
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.stylua,
}
2024-04-04 15:23:10 -03:00
return config -- return final config table
end,
}