feat: add graphql lang package

This commit is contained in:
Josh Medeski 2023-09-01 10:51:41 -05:00
parent f9dadc11b3
commit aeb989151e
No known key found for this signature in database
GPG key ID: DFD5E7D060DB3958

View file

@ -0,0 +1,25 @@
return {
-- add graphql to treesitter
{
"nvim-treesitter/nvim-treesitter",
opts = function(_, opts)
if type(opts.ensure_installed) == "table" then
vim.list_extend(opts.ensure_installed, { "graphql" })
end
end,
},
-- correctly setup lspconfig
{
"neovim/nvim-lspconfig",
dependencies = {},
opts = {
-- make sure mason installs the server
servers = {
graphql = {
filetypes = { "graphql", "typescript", "typescriptreact" },
},
},
},
},
}