ci: add lsp to diagnostics
This commit is contained in:
2
.github/workflows/ci.yml
vendored
2
.github/workflows/ci.yml
vendored
@@ -59,4 +59,4 @@ jobs:
|
||||
|
||||
- name: lua-language-server --check
|
||||
run: |
|
||||
PATH="luals/bin:${PATH}" scripts/luals-check.sh
|
||||
VIMRUNTIME=/home/runner/nvim-v0.9.4 PATH="luals/bin:${PATH}" scripts/luals-check.sh
|
||||
|
||||
@@ -1,7 +1,13 @@
|
||||
{
|
||||
"$schema": "https://raw.githubusercontent.com/sumneko/vscode-lua/master/setting/schema.json",
|
||||
"runtime.version" : "Lua 5.1",
|
||||
"workspace": {
|
||||
"library": [
|
||||
"$VIMRUNTIME/lua/vim/lsp"
|
||||
]
|
||||
},
|
||||
"diagnostics": {
|
||||
"libraryFiles": "Disable",
|
||||
"globals": [
|
||||
"vim"
|
||||
],
|
||||
|
||||
@@ -4,9 +4,6 @@ local log = require "nvim-tree.log"
|
||||
|
||||
local M = {}
|
||||
|
||||
---TODO add "$VIMRUNTIME" to "workspace.library" and use the @enum instead of this integer
|
||||
---@alias lsp.DiagnosticSeverity integer
|
||||
|
||||
---COC severity level strings to LSP severity levels
|
||||
---@enum COC_SEVERITY_LEVELS
|
||||
local COC_SEVERITY_LEVELS = {
|
||||
|
||||
@@ -12,7 +12,7 @@ rm -rf "${DIR_OUT}"
|
||||
mkdir "${DIR_OUT}"
|
||||
|
||||
# execute inside lua to prevent luals itself from being checked
|
||||
OUT=$(lua-language-server --check "${DIR_SRC}" --configpath="${PWD}/.luarc.json" --checklevel=Information --logpath="${DIR_OUT}" --loglevel=error)
|
||||
OUT=$(lua-language-server --check="${DIR_SRC}" --configpath="${PWD}/.luarc.json" --checklevel=Information --logpath="${DIR_OUT}" --loglevel=error)
|
||||
RC=$?
|
||||
|
||||
echo "${OUT}" >&2
|
||||
|
||||
Reference in New Issue
Block a user