aboutsummaryrefslogtreecommitdiff
path: root/vim/.config/nvim/lsp/cspell-ls.lua
blob: b01c7a3849726d65bb1dac655b3e75dbc021e3d8 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
---@brief
---
--- [cspell language server](https://github.com/vlabo/cspell-lsp)
---
return {
  cmd = { 'cspell-lsp', '--stdio' },
  filetypes = { "go", "rust", "js", "ts", "html", "css", "json", "yaml", "markdown", "gitcommit", "typst", "lua", "htmlua", "c", "cpp", "arduino" },
  root_markers = {
    '.git',
    'cspell.json',
    '.cspell.json',
    'cspell.json',
    '.cSpell.json',
    'cSpell.json',
    'cspell.config.js',
    'cspell.config.cjs',
    'cspell.config.json',
    'cspell.config.yaml',
    'cspell.config.yml',
    'cspell.yaml',
    'cspell.yml',
  },
  init_options = {
    userWordsFile = vim.fn.expand('~/.config/cspell/user-dictionary.txt'),
    configPaths = {
      vim.fn.expand('~/.cspell.json'),
    },
  },
}