Merge pull request #1 from ggdawson/autoformat
add null_ls for formatting
This commit is contained in:
commit
b9217c37ba
|
@ -38,4 +38,14 @@ for type, icon in pairs(signs) do
|
||||||
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
vim.fn.sign_define(hl, { text = icon, texthl = hl, numhl = hl })
|
||||||
end
|
end
|
||||||
|
|
||||||
|
-- null-ls
|
||||||
|
|
||||||
|
local null_ls = require("null-ls")
|
||||||
|
|
||||||
|
null_ls.setup({
|
||||||
|
sources = {
|
||||||
|
null_ls.builtins.formatting.prettierd,
|
||||||
|
},
|
||||||
|
})
|
||||||
|
|
||||||
-- vim: ts=2 sts=2 sw=2 et
|
-- vim: ts=2 sts=2 sw=2 et
|
||||||
|
|
|
@ -19,8 +19,10 @@ return {
|
||||||
|
|
||||||
{
|
{
|
||||||
"kristijanhusak/vim-dirvish-git",
|
"kristijanhusak/vim-dirvish-git",
|
||||||
dependencies = {
|
dependencies = { "justinmk/vim-dirvish", },
|
||||||
"justinmk/vim-dirvish",
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"jose-elias-alvarez/null-ls.nvim",
|
||||||
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue