Merge pull request #1 from ggdawson/autoformat

add null_ls for formatting
pull/247/head
Garrett Dawson 2 years ago committed by GitHub
commit b9217c37ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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…
Cancel
Save