Merge pull request #1 from ggdawson/autoformat

add null_ls for formatting
This commit is contained in:
Garrett Dawson 2023-03-20 21:03:13 -06:00 committed by GitHub
commit b9217c37ba
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 15 additions and 3 deletions

View File

@ -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

View File

@ -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" },
}
} }