nil-ls => none-ls and stuff
Some checks failed
Close stale issues and PRs / stale (push) Has been cancelled

This commit is contained in:
Adam Bellinson
2025-04-07 18:41:26 -04:00
parent 3fc6fde51c
commit 37eb7073a1
5 changed files with 56 additions and 38 deletions

View File

@@ -0,0 +1,38 @@
local null_ls = require("null-ls")
null_ls.setup({
sources = {
null_ls.builtins.formatting.stylua,
null_ls.builtins.completion.spell,
-- require("none-ls.diagnostics.eslint"), -- requires none-ls-extras.nvim
},
})
-- local augroup = vim.api.nvim_create_augroup("NoneLsFormatting", {})
--
-- local on_attach = function(client, bufnr)
-- if client.supports_method("textDocument/formatting") then
-- vim.api.nvim_clear_autocmds({ group = augroup, buffer = bufnr })
-- vim.api.nvim_create_autocmd("BufWritePre", {
-- group = augroup,
-- buffer = bufnr,
-- callback = function()
-- vim.lsp.buf.format({ bufnr = bufnr })
-- end,
-- })
-- end
-- end
--
-- local null_ls = require("null-ls")
--
-- null_ls.setup({
-- sources = {
-- null_ls.builtins.formatting.stylua,
-- null_ls.builtins.formatting.prettierd.with({
-- extra_args = { "--no-semi", "--single-quote", "--jsx-single-quote" },
-- }),
-- null_ls.builtins.diagnostics.mypy.with({ extra_args = { "--ignore-missing-imports" } }),
-- },
-- on_attach = on_attach,
-- })
--