From 28e449c31ce39cfc9652b2ecd3a251f52fc7c75b Mon Sep 17 00:00:00 2001 From: ItsSunnyMonster <100400733+ItsSunnyMonster@users.noreply.github.com> Date: Mon, 16 Oct 2023 00:41:15 +1300 Subject: feat: add more filetype support on gls servers (#2865) * fix(glsl_analyzer): add other common file types * fix(glslls): add other common file types --- lua/lspconfig/server_configurations/glsl_analyzer.lua | 2 +- lua/lspconfig/server_configurations/glslls.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) (limited to 'lua') diff --git a/lua/lspconfig/server_configurations/glsl_analyzer.lua b/lua/lspconfig/server_configurations/glsl_analyzer.lua index b948c36f..74ffbba9 100644 --- a/lua/lspconfig/server_configurations/glsl_analyzer.lua +++ b/lua/lspconfig/server_configurations/glsl_analyzer.lua @@ -3,7 +3,7 @@ local util = require 'lspconfig.util' return { default_config = { cmd = { 'glsl_analyzer' }, - filetypes = { 'glsl' }, + filetypes = { 'glsl', 'vert', 'tesc', 'tese', 'frag', 'geom', 'comp' }, root_dir = util.find_git_ancestor, single_file_support = true, capabilities = {}, diff --git a/lua/lspconfig/server_configurations/glslls.lua b/lua/lspconfig/server_configurations/glslls.lua index fd6de7f8..7d1c3634 100644 --- a/lua/lspconfig/server_configurations/glslls.lua +++ b/lua/lspconfig/server_configurations/glslls.lua @@ -3,7 +3,7 @@ local util = require 'lspconfig.util' return { default_config = { cmd = { 'glslls', '--stdin' }, - filetypes = { 'glsl' }, + filetypes = { 'glsl', 'vert', 'tesc', 'tese', 'frag', 'geom', 'comp' }, root_dir = util.find_git_ancestor, single_file_support = true, capabilities = { -- cgit v1.3