nvim/lua/plugins/lspconfig.lua
Evie Litherland-Smith 9afe8567fd Add cspell, exclusively use null-ls for formatting
Add cspell extension and initial cspell.json ignore list
Disable formatting in all other language servers, use null-ls
exclusively for finer control over formatters
Add additional formatters
2023-05-17 17:03:02 +01:00

19 lines
845 B
Lua

return {
"neovim/nvim-lspconfig",
event = { "BufReadPre", "BufNewFile", "CmdlineEnter" },
dependencies = {
{ "hrsh7th/cmp-nvim-lsp", dependencies = { "hrsh7th/nvim-cmp" } },
{ "hrsh7th/cmp-buffer", dependencies = { "hrsh7th/nvim-cmp" } },
{ "hrsh7th/cmp-path", dependencies = { "hrsh7th/nvim-cmp" } },
{ "hrsh7th/cmp-cmdline", dependencies = { "hrsh7th/nvim-cmp" } },
{ "L3MON4D3/LuaSnip", dependencies = { "hrsh7th/nvim-cmp", "saadparwaiz1/cmp_luasnip" } },
{ "windwp/nvim-autopairs", dependencies = { "hrsh7th/nvim-cmp" } },
{ "folke/neodev.nvim", dependencies = { "hrsh7th/nvim-cmp" } },
{ "jose-elias-alvarez/null-ls.nvim", dependencies = { "davidmh/cspell.nvim" } },
},
config = function()
require "lsp.config"
require "lsp.cmp"
end,
}