nvim_config/lua/plugins/none-ls.lua

29 lines
853 B
Lua
Raw Normal View History

2024-04-04 23:12:08 +00:00
if true then return {} end -- WARN: REMOVE THIS LINE TO ACTIVATE THIS FILE
-- Customize None-ls sources
-- [WARN] REMOVe
---@type LazySpec
return {
"nvimtools/none-ls.nvim",
opts = function(_, config)
-- config variable is the default configuration table for the setup function call
2024-05-15 18:01:02 +00:00
local null_ls = require "null-ls"
2024-04-04 23:12:08 +00:00
-- 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,
2024-05-15 18:01:02 +00:00
null_ls.builtins.formatting.prettier.with {
extra_filetypes = {
"svelte",
"astro",
},
},
2024-04-04 23:12:08 +00:00
}
return config -- return final config table
end,
}