diff --git a/.config/nvim/lua/plugins/extras/lang/web/graphql.lua b/.config/nvim/lua/plugins/extras/lang/web/graphql.lua new file mode 100644 index 00000000..744ffbff --- /dev/null +++ b/.config/nvim/lua/plugins/extras/lang/web/graphql.lua @@ -0,0 +1,22 @@ +return { + { + "williamboman/mason.nvim", + opts = function(_, opts) + vim.list_extend(opts.ensure_installed, { + "graphql-language-service-cli", + }) + end, + }, + { + "neovim/nvim-lspconfig", + dependencies = {}, + opts = { + -- make sure mason installs the server + servers = { + graphql = { + filetypes = { "graphql", "typescript", "typescriptreact" }, + }, + }, + }, + }, +}