mirror of
https://github.com/LazyVim/LazyVim.git
synced 2026-07-25 14:01:06 +00:00
feat: add graphql lang package
This commit is contained in:
parent
f9dadc11b3
commit
aeb989151e
1 changed files with 25 additions and 0 deletions
25
lua/lazyvim/plugins/extras/lang/graphql.lua
Normal file
25
lua/lazyvim/plugins/extras/lang/graphql.lua
Normal 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" },
|
||||
},
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
Loading…
Add table
Reference in a new issue