aboutsummaryrefslogtreecommitdiff
path: root/modules/neovim/nvim/lua/config/lsp/clangd.lua
blob: 14554a4b31aa2533c4198b92cd756d3eeb280329 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
return {
  cmd = { "clangd" },
  filetypes = { "c", "cpp", "cuda" },
  root_markers = { 
    "meson.build",
    ".clang-format",
    ".clang-tidy",
    "compile_commands.json",
    "compile_flags.txt", 
    "configure.ac" 
  },
  single_file_support = true,
  capabilities = {
    textDocument = {
      completion = {
        editsNearCursor = true,
      },
    },
    offsetEncoding = { "utf-8", "utf-16" },
  },
}