aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZhizhen He <hezhizhen.yi@gmail.com>2023-03-23 16:35:08 +0800
committerGitHub <noreply@github.com>2023-03-23 16:35:08 +0800
commitc6105c449683b944b5d2138fcf82f18c657249e9 (patch)
tree63a3c0ff4078e4e88c760261eee503b5319cfd32
parentfeat: add PyrightSetPythonPath command to pyright config (#2519) (diff)
downloadnvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar
nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.gz
nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.bz2
nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.lz
nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.xz
nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.tar.zst
nvim-lspconfig-c6105c449683b944b5d2138fcf82f18c657249e9.zip
chore: remove redundant config for Lua (#2523)
-rw-r--r--.editorconfig4
-rw-r--r--CONTRIBUTING.md2
-rw-r--r--scripts/docgen.lua4
3 files changed, 3 insertions, 7 deletions
diff --git a/.editorconfig b/.editorconfig
index 489c20c0..bb6a1423 100644
--- a/.editorconfig
+++ b/.editorconfig
@@ -8,10 +8,6 @@ end_of_line = lf
insert_final_newline = true
charset = utf-8
-[*.lua]
-indent_style = space
-indent_size = 2
-
[{Makefile,**/Makefile,runtime/doc/*.txt}]
indent_style = tab
indent_size = 8
diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md
index e97d6591..2d04b23f 100644
--- a/CONTRIBUTING.md
+++ b/CONTRIBUTING.md
@@ -125,7 +125,7 @@ PRs are checked with [luacheck](https://github.com/mpeterv/luacheck), [StyLua](h
## Generating docs
-Github Actions automatically generates `server_configurations.md`. Only modify `scripts/README_template.md` or the `docs` table in the server config Lua file. Do not modify `server_configurations.md` directly.
+GitHub Actions automatically generates `server_configurations.md`. Only modify `scripts/README_template.md` or the `docs` table in the server config Lua file. Do not modify `server_configurations.md` directly.
To preview the generated `server_configurations.md` locally, run `scripts/docgen.lua` from
`nvim` (from the project root):
diff --git a/scripts/docgen.lua b/scripts/docgen.lua
index 119353ba..9f6c1bc1 100644
--- a/scripts/docgen.lua
+++ b/scripts/docgen.lua
@@ -196,7 +196,7 @@ local function make_lsp_sections()
end
-- https://github.github.com/gfm/#backslash-escapes
- local function excape_markdown_punctuations(str)
+ local function escape_markdown_punctuations(str)
local pattern =
'\\(\\*\\|\\.\\|?\\|!\\|"\\|#\\|\\$\\|%\\|\'\\|(\\|)\\|,\\|-\\|\\/\\|:\\|;\\|<\\|=\\|>\\|@\\|\\[\\|\\\\\\|\\]\\|\\^\\|_\\|`\\|{\\|\\\\|\\|}\\)'
return fn.substitute(str, pattern, '\\\\\\0', 'g')
@@ -223,7 +223,7 @@ local function make_lsp_sections()
make_section(2, '\n\n', {
{ v.default and 'Default: ' .. tick(inspect(v.default, { newline = '', indent = '' })) },
{ v.items and 'Array items: ' .. tick(inspect(v.items, { newline = '', indent = '' })) },
- { excape_markdown_punctuations(v.description) },
+ { escape_markdown_punctuations(v.description) },
}),
})
end)