null_ls is no longer being maintained :(
This commit is contained in:
parent
231f07f6ff
commit
0ee9a8daa4
3 changed files with 0 additions and 34 deletions
|
@ -7,7 +7,6 @@ require("core.plugin_config.cmp_config")
|
||||||
require("core.plugin_config.autopairs")
|
require("core.plugin_config.autopairs")
|
||||||
require("core.plugin_config.gitsigns")
|
require("core.plugin_config.gitsigns")
|
||||||
require("core.plugin_config.precense")
|
require("core.plugin_config.precense")
|
||||||
require("core.plugin_config.null_ls")
|
|
||||||
require("core.plugin_config.colorscheme")
|
require("core.plugin_config.colorscheme")
|
||||||
require("core.plugin_config.liveserver")
|
require("core.plugin_config.liveserver")
|
||||||
require("core.plugin_config.color-picker")
|
require("core.plugin_config.color-picker")
|
||||||
|
|
|
@ -1,29 +0,0 @@
|
||||||
local null_ls = require("null-ls")
|
|
||||||
|
|
||||||
local formatting = null_ls.builtins.formatting
|
|
||||||
local diagnostics = null_ls.builtins.diagnostics
|
|
||||||
|
|
||||||
local augroup = vim.api.nvim_create_augroup("LspFormatting", {})
|
|
||||||
|
|
||||||
null_ls.setup({
|
|
||||||
sources = {
|
|
||||||
formatting.prettier,
|
|
||||||
formatting.stylua,
|
|
||||||
formatting.csharpier,
|
|
||||||
formatting.alejandra,
|
|
||||||
formatting.black,
|
|
||||||
diagnostics.cpplint,
|
|
||||||
},
|
|
||||||
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({ buffer })
|
|
||||||
end,
|
|
||||||
})
|
|
||||||
end
|
|
||||||
end,
|
|
||||||
})
|
|
|
@ -59,10 +59,6 @@ local plugins = {
|
||||||
-- git stuff lol
|
-- git stuff lol
|
||||||
"lewis6991/gitsigns.nvim",
|
"lewis6991/gitsigns.nvim",
|
||||||
|
|
||||||
-- linting
|
|
||||||
"jose-elias-alvarez/null-ls.nvim",
|
|
||||||
"jayp0521/mason-null-ls.nvim",
|
|
||||||
|
|
||||||
-- flex
|
-- flex
|
||||||
"andweeb/presence.nvim",
|
"andweeb/presence.nvim",
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue