none-ls decided they no better than the community

This commit is contained in:
Daylin Morgan 2024-02-27 11:41:45 -06:00
parent 93b2a0677d
commit d4085c80c2
Signed by: daylin
GPG key ID: 3CD66E04B8072F3E
2 changed files with 16 additions and 16 deletions

View file

@ -1,12 +1,12 @@
return {
require("util").setup_lang({ treesitter = { "python", "toml" }, mason = { "ruff", "ruff-lsp" } }),
{
"nvimtools/none-ls.nvim",
opts = function(_, opts)
local nls = require("null-ls")
table.insert(opts.sources or {}, nls.builtins.formatting.ruff)
end,
},
-- {
-- "nvimtools/none-ls.nvim",
-- opts = function(_, opts)
-- local nls = require("null-ls")
-- table.insert(opts.sources or {}, nls.builtins.formatting.ruff)
-- end,
-- },
-- modified from https://www.lazyvim.org/extras/lang/python#nvim-lspconfig
{
"neovim/nvim-lspconfig",

View file

@ -1,12 +1,12 @@
return {
require("util").setup_lang({ treesitter = { "bash" }, mason = { "shellcheck" } }),
{
"nvimtools/none-ls.nvim",
opts = function(_, opts)
local nls = require("null-ls")
opts.sources = vim.list_extend(opts.sources or {}, {
nls.builtins.diagnostics.shellcheck,
})
end,
},
-- {
-- "nvimtools/none-ls.nvim",
-- opts = function(_, opts)
-- local nls = require("null-ls")
-- opts.sources = vim.list_extend(opts.sources or {}, {
-- nls.builtins.diagnostics.shellcheck,
-- })
-- end,
-- },
}