none-ls decided they no better than the community
This commit is contained in:
parent
93b2a0677d
commit
d4085c80c2
2 changed files with 16 additions and 16 deletions
|
@ -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",
|
||||||
|
|
|
@ -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,
|
||||||
},
|
-- },
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue