diff options
author | James Walmsley <[email protected]> | 2021-07-02 21:20:09 +0100 |
---|---|---|
committer | GitHub <[email protected]> | 2021-07-02 16:20:09 -0400 |
commit | 85c24bc2f7a7bf0771cf70cf0f9de0190fdf5670 (patch) | |
tree | f2a8d86228e574fa42a8ca6e4fd40803420a085c /ftplugin/c.lua | |
parent | 6f440778369231cfb7b0ee51f71fc2321528c0ac (diff) |
[FTPLUGIN] Rename cpp -> c neovim sources c for c and cpp. (#598)
Diffstat (limited to 'ftplugin/c.lua')
-rw-r--r-- | ftplugin/c.lua | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/ftplugin/c.lua b/ftplugin/c.lua new file mode 100644 index 00000000..594c375b --- /dev/null +++ b/ftplugin/c.lua @@ -0,0 +1,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.lang.clang.diagnostics.virtual_text, + signs = O.lang.clang.diagnostics.signs, + underline = O.lang.clang.diagnostics.underline, + update_in_insert = true + + }) + } +} |