2022-11-16 23:37:05 +01:00

33 lines
711 B
Lua

local status_ok, util = pcall(require, "lspconfig.util")
if not status_ok then
return
end
local default_capabilities = {
textDocument = {
completion = {
editsNearCursor = true,
},
},
offsetEncoding = { 'utf-8', 'utf-16' },
}
local default_config = {
cmd = { 'glslls' }, -- GLSL lsp executable from (https://github.com/svenstaro/glsl-language-server
filetypes = { 'glsl' },
root_dir = util.root_pattern('compile_commands.json', '.git'),
single_file_support = true,
capabilities = default_capabilities,
}
return {
default_configs = default_config,
commands = {},
docs = {
description = [[
Basic LSP support for GLSL using glslls --stdio
]]
},
}