diff options
author | Chris <[email protected]> | 2021-07-02 18:01:34 -0400 |
---|---|---|
committer | Chris <[email protected]> | 2021-07-02 18:01:34 -0400 |
commit | cc3c3422465f322092633894c8299285fe50a260 (patch) | |
tree | 51ae03b65e3bdb37352653864f4d8f7bf9dea6fb /ftplugin/c.lua | |
parent | d3f7bec7fbb26096a475a7c543a6cafa06a2b076 (diff) | |
parent | 85c24bc2f7a7bf0771cf70cf0f9de0190fdf5670 (diff) |
Merge branch 'master' of github.com:ChristianChiarulli/LunarVim
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 + + }) + } +} |