From 0d7cf8e53ac15b5498128453fe02f2bd16570c6e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sergio=20La=C3=ADn?= Date: Fri, 17 Nov 2023 14:42:04 +0100 Subject: [PATCH] =?UTF-8?q?=E2=9C=A8=20feat(nvim):=20graphql=20extra=20add?= =?UTF-8?q?ed?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lua/plugins/extras/lang/web/graphql.lua | 22 +++++++++++++++++++ 1 file changed, 22 insertions(+) create mode 100644 .config/nvim/lua/plugins/extras/lang/web/graphql.lua 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" }, + }, + }, + }, + }, +}