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

View file

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