diff options
author | Christian Segundo | 2024-03-24 23:48:01 +0100 |
---|---|---|
committer | Christian Segundo | 2024-03-24 23:48:01 +0100 |
commit | df4ac2846a0db80d5c2897c15b7d4cad84e4c229 (patch) | |
tree | f6d7340653e0e29bbc935bd48f20027064246e7e | |
parent | 26da3d26a9a209c5a808e86aef1d48fe6f135434 (diff) | |
download | config-df4ac2846a0db80d5c2897c15b7d4cad84e4c229.tar.gz |
c tooling
-rw-r--r-- | lua/plugins/lang/c.lua | 14 |
1 files changed, 14 insertions, 0 deletions
diff --git a/lua/plugins/lang/c.lua b/lua/plugins/lang/c.lua index 5b54a9d..d91db70 100644 --- a/lua/plugins/lang/c.lua +++ b/lua/plugins/lang/c.lua @@ -9,6 +9,20 @@ return { end, }, { + "jose-elias-alvarez/null-ls.nvim", + opts = function(_, opts) + if type(opts) == "table" then + opts.sources = opts.sources or {} + local null_ls = require("null-ls") + vim.list_extend(opts.sources, { + null_ls.builtins.diagnostics.clang_check, + null_ls.builtins.diagnostics.cppcheck, + null_ls.builtins.diagnostics.cpplint, + }) + end + end, + }, + { "neovim/nvim-lspconfig", opts = function(_, opts) if type(opts) == "table" then |