aboutsummaryrefslogtreecommitdiff
path: root/vim/.config/nvim/lsp/ccls.lua
blob: f0a08c5ca887f7556942c96cb3e429d21e5d2e98 (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
return {
  cmd = {
    'clangd',
    -- '--clang-tidy',
    -- '--background-index',
    -- '--offset-encoding=utf-8',
  },
  filetypes = { 'arduino' },
  root_markers = {
    '.clangd',
    '.ccls',
    'compile_commands.json',
    'compile_flags.txt',
    'configure.ac' -- AutoTools
  },
  single_file_support = true,
  capabilities = {
    textDocument = {
      completion = {
        editsNearCursor = true,
      },
    },
    offsetEncoding = { 'utf-8', 'utf-16' },
  },
}