1
0
mirror of https://github.com/SpaceVim/SpaceVim.git synced 2025-02-04 01:10:06 +08:00
SpaceVim/bundle/nvim-lspconfig/lua/lspconfig/server_configurations/wgsl_analyzer.lua

31 lines
611 B
Lua
Raw Normal View History

local util = require 'lspconfig.util'
local bin_name = 'wgsl_analyzer'
local cmd = { bin_name }
if vim.fn.has 'win32' == 1 then
cmd = { 'cmd.exe', '/C', bin_name }
end
return {
default_config = {
cmd = cmd,
filetypes = { 'wgsl' },
root_dir = util.root_pattern '.git',
settings = {},
},
docs = {
description = [[
https://github.com/wgsl-analyzer/wgsl-analyzer
`wgsl_analyzer` can be installed via `cargo`:
```sh
cargo install --git https://github.com/wgsl-analyzer/wgsl-analyzer wgsl_analyzer
```
]],
default_config = {
root_dir = [[root_pattern(".git"]],
},
},
}