grace/dots

dotfiles/nix configs

git clone https://git.gae.moe/grace/dots

Grace Yoderhx and vcs changesddf0c79

vulcan
1.3 KiB48 linesraw
1return {
2  cmd = {"textlsp"}, -- You may need to provide the full path to textlsp if not in $PATH
3  filetypes = { "markdown", "org", "latex", "txt", "md", "markdown" }, -- and any other you want as plain text
4  root_markers = {
5    ".git",
6  },
7  single_file_support = true,
8  capabilities = {
9    textDocument = {
10      completion = {
11        editsNearCursor = true,
12      },
13    },
14    -- textLSP does not require offsetEncoding, but you may include it for consistency:
15    offsetEncoding = { "utf-8", "utf-16" },
16  },
17  settings = {
18    textLSP = {
19      analysers = {
20        languagetool = {
21          enabled = false,
22          -- check_text = {
23          --   on_open = true,
24          --   on_save = true,
25          --   on_change = false,
26          -- },
27        },
28        ollama = {
29          enabled = true,
30          check_text = {
31            on_open = false,
32            on_save = true,
33            on_change = false,
34          },
35          model = "phi3:3.8b-instruct",
36          max_token = 50,
37        },
38        -- enable and configure other analyzers as desired
39      },
40      documents = {
41        language = "auto:en",
42        min_length_language_detect = 20,
43        org = { org_todo_keywords = { "TODO", "IN_PROGRESS", "DONE" } },
44        txt = { parse = true },
45      },
46    },
47  },
48}