feat(nvim): add null-ls for formatting

This commit is contained in:
Oliver Davies 2021-12-25 22:54:11 +00:00
parent 8bb5c9b773
commit 6e4a400002
2 changed files with 14 additions and 0 deletions

View file

@ -0,0 +1,13 @@
local status_ok, null_ls = pcall(require, "null-ls")
if not status_ok then
return
end
null_ls.setup({
sources = {
null_ls.builtins.formatting.prettier,
null_ls.builtins.formatting.stylua,
null_ls.builtins.diagnostics.eslint,
null_ls.builtins.completion.spell,
},
})

View file

@ -75,6 +75,7 @@ return packer.startup(function()
-- LSP -- LSP
use 'neovim/nvim-lspconfig' use 'neovim/nvim-lspconfig'
use 'jose-elias-alvarez/null-ls.nvim'
-- Telescope -- Telescope
use 'nvim-telescope/telescope.nvim' use 'nvim-telescope/telescope.nvim'