diff options
| author | github-actions <github-actions@github.com> | 2021-11-02 18:36:09 +0000 |
|---|---|---|
| committer | github-actions <github-actions@github.com> | 2021-11-02 18:36:09 +0000 |
| commit | 46dd454af40998bed94f87e5cc3557385b9ff8da (patch) | |
| tree | 2a3c3e485f4045803b8ae24a2b6eae332d4382e8 /CONFIG.md | |
| parent | feat(ltexls): simplify configuration (#1364) (diff) | |
| download | nvim-lspconfig-46dd454af40998bed94f87e5cc3557385b9ff8da.tar nvim-lspconfig-46dd454af40998bed94f87e5cc3557385b9ff8da.tar.gz nvim-lspconfig-46dd454af40998bed94f87e5cc3557385b9ff8da.tar.bz2 nvim-lspconfig-46dd454af40998bed94f87e5cc3557385b9ff8da.tar.lz nvim-lspconfig-46dd454af40998bed94f87e5cc3557385b9ff8da.tar.xz nvim-lspconfig-46dd454af40998bed94f87e5cc3557385b9ff8da.tar.zst nvim-lspconfig-46dd454af40998bed94f87e5cc3557385b9ff8da.zip | |
docs: update CONFIG.md
skip-checks: true
Diffstat (limited to 'CONFIG.md')
| -rw-r--r-- | CONFIG.md | 31 |
1 files changed, 13 insertions, 18 deletions
@@ -4133,6 +4133,11 @@ LTeX Language Server: LSP language server for LanguageTool 🔍✔️ with suppo To install, download the latest [release](https://github.com/valentjn/ltex-ls/releases) and ensure `ltex-ls` is on your path. +To support org files or R sweave, users can define a custom filetype autocommand (or use a plugin which defines these filetypes): + +```lua +vim.cmd [[ autocmd BufRead,BufNewFile *.org set filetype=org ]] +``` This server accepts configuration via the `settings` key. <details><summary>Available settings:</summary> @@ -4349,29 +4354,19 @@ require'lspconfig'.ltex.setup{} Default Values: cmd = { "ltex-ls" } - filetypes = { "tex", "bib", "markdown" } + filetypes = { "bib", "markdown", "org", "plaintex", "rst", "rnoweb", "tex" } + get_language_id = function(_, filetype) + local language_id = language_id_mapping[filetype] + if language_id then + return language_id + end + end, root_dir = function(path) if M.path.is_dir(M.path.join(path, '.git')) then return path end end) end - settings = { - ltex = { - additionalRules = { - enablePickyRules = true, - motherTongue = "en" - }, - checkFrequency = "edit", - diagnosticSeverity = "information", - dictionary = {}, - disabledRules = {}, - enabled = { "latex", "tex", "bib", "markdown" }, - hiddenFalsePositives = {}, - language = "en", - setenceCacheSize = 2000 - } - } ``` @@ -7204,7 +7199,7 @@ This server accepts configuration via the `settings` key. null -- **`Lua.runtime.fileEncoding`**: `enum { "utf8", "ansi" }` +- **`Lua.runtime.fileEncoding`**: `enum { "utf8", "ansi", "utf16le", "utf16be" }` Default: `"utf8"` |
