summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/lsp/clangd.lua
blob: dbbda08464e80668a52f2b576e4de42505c8a5f0 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
require'lspconfig'.clangd.setup {
    cmd = {DATA_PATH .. "/lspinstall/cpp/clangd/bin/clangd"},
    on_attach = require'lsp'.common_on_attach,
    handlers = {
        ["textDocument/publishDiagnostics"] = vim.lsp.with(vim.lsp.diagnostic.on_publish_diagnostics, {
            virtual_text = O.clang.diagnostics.virtual_text,
            signs = O.clang.diagnostics.signs,
            underline = O.clang.diagnostics.underline,
            update_in_insert = true

        })
    }
}