diff options
| author | Grace Yoder <grace_yoder@outlook.com> | 2026-09-03 15:36:32 -0400 |
|---|---|---|
| committer | Grace Yoder <grace_yoder@outlook.com> | 2026-09-03 15:37:10 -0400 |
| commit | 22b6712c240fea0643cfc01acfce1fda1f125b8a (patch) | |
| tree | fb8ac2302793c76d3640aab7d3f74f7a57c01933 /vim/.config/nvim/lsp/textlsp.lua | |
nix init
Diffstat (limited to 'vim/.config/nvim/lsp/textlsp.lua')
| -rw-r--r-- | vim/.config/nvim/lsp/textlsp.lua | 48 |
1 files changed, 48 insertions, 0 deletions
diff --git a/vim/.config/nvim/lsp/textlsp.lua b/vim/.config/nvim/lsp/textlsp.lua new file mode 100644 index 0000000..a1dbfc8 --- /dev/null +++ b/vim/.config/nvim/lsp/textlsp.lua @@ -0,0 +1,48 @@ +return { + cmd = {"textlsp"}, -- You may need to provide the full path to textlsp if not in $PATH + filetypes = { "markdown", "org", "latex", "txt", "md", "markdown" }, -- and any other you want as plain text + root_markers = { + ".git", + }, + single_file_support = true, + capabilities = { + textDocument = { + completion = { + editsNearCursor = true, + }, + }, + -- textLSP does not require offsetEncoding, but you may include it for consistency: + offsetEncoding = { "utf-8", "utf-16" }, + }, + settings = { + textLSP = { + analysers = { + languagetool = { + enabled = false, + -- check_text = { + -- on_open = true, + -- on_save = true, + -- on_change = false, + -- }, + }, + ollama = { + enabled = true, + check_text = { + on_open = false, + on_save = true, + on_change = false, + }, + model = "phi3:3.8b-instruct", + max_token = 50, + }, + -- enable and configure other analyzers as desired + }, + documents = { + language = "auto:en", + min_length_language_detect = 20, + org = { org_todo_keywords = { "TODO", "IN_PROGRESS", "DONE" } }, + txt = { parse = true }, + }, + }, + }, +} |
