✨ feat(nvim): graphql extra added
This commit is contained in:
parent
6a024cba42
commit
0d7cf8e53a
1 changed files with 22 additions and 0 deletions
22
.config/nvim/lua/plugins/extras/lang/web/graphql.lua
Normal file
22
.config/nvim/lua/plugins/extras/lang/web/graphql.lua
Normal file
|
@ -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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
Loading…
Add table
Reference in a new issue