refactor(nvim): remove null-ls 😢
This commit is contained in:
parent
3a433fb181
commit
d96c8853cc
@ -1,27 +1,4 @@
|
||||
return {
|
||||
{
|
||||
"jose-elias-alvarez/null-ls.nvim",
|
||||
event = { "BufReadPre", "BufNewFile" },
|
||||
opts = function()
|
||||
local null_ls = require("null-ls")
|
||||
local function on_attach(client, bufnr)
|
||||
local ft = vim.api.nvim_get_option_value("filetype", { buf = bufnr })
|
||||
if ft == "markdown" then
|
||||
vim.api.nvim_set_option_value("formatexpr", nil, { buf = bufnr })
|
||||
end
|
||||
end
|
||||
return {
|
||||
on_attach = on_attach,
|
||||
sources = {
|
||||
null_ls.builtins.diagnostics.hadolint,
|
||||
null_ls.builtins.code_actions.refactoring,
|
||||
null_ls.builtins.formatting.black,
|
||||
null_ls.builtins.formatting.stylua,
|
||||
null_ls.builtins.formatting.prettier,
|
||||
},
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
url = "https://git.sr.ht/~whynothugo/lsp_lines.nvim",
|
||||
event = "LspAttach",
|
||||
|
Loading…
Reference in New Issue
Block a user