enc: java default cconfig

This commit is contained in:
asep.komarudin 2024-06-23 17:02:53 +07:00
parent f0f7958de7
commit cecf29d7db
9 changed files with 247 additions and 73 deletions

View file

@ -3,6 +3,15 @@ local M = {}
-- local file_name_no_ext = vim.fn.expand("%:t:r")
if pcode.active_cpp_config then
M = {
{
"nvimtools/none-ls.nvim",
optional = true,
opts = function(_, opts)
local nls = require("null-ls")
opts.sources = opts.sources or {}
table.insert(opts.sources, nls.builtins.formatting.clang_format.with({ filetypes = { "cpp", "c" } }))
end,
},
{
"nvim-neotest/neotest",
ft = { "cpp" },