First c ommit ever
This commit is contained in:
26
private_dot_config/nvim/lua/custom/plugins/null-ls.lua
Normal file
26
private_dot_config/nvim/lua/custom/plugins/null-ls.lua
Normal file
@@ -0,0 +1,26 @@
|
||||
local present, null_ls = pcall(require, "null-ls")
|
||||
|
||||
if not present then
|
||||
return
|
||||
end
|
||||
|
||||
local b = null_ls.builtins
|
||||
|
||||
local sources = {
|
||||
|
||||
-- webdev stuff
|
||||
b.formatting.deno_fmt,
|
||||
b.formatting.prettier,
|
||||
|
||||
-- Lua
|
||||
b.formatting.stylua,
|
||||
|
||||
-- Shell
|
||||
b.formatting.shfmt,
|
||||
b.diagnostics.shellcheck.with { diagnostics_format = "#{m} [#{c}]" },
|
||||
}
|
||||
|
||||
null_ls.setup {
|
||||
debug = true,
|
||||
sources = sources,
|
||||
}
|
||||
Reference in New Issue
Block a user