feat(nvim): add null-ls for formatting
This commit is contained in:
parent
8bb5c9b773
commit
6e4a400002
13
nvim/.config/nvim/lua/opdavies/lsp/null-ls.lua
Normal file
13
nvim/.config/nvim/lua/opdavies/lsp/null-ls.lua
Normal 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,
|
||||||
|
},
|
||||||
|
})
|
|
@ -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'
|
||||||
|
|
Loading…
Reference in a new issue