From 6bce491f225b67ae82f02d330e13f0f16296675e Mon Sep 17 00:00:00 2001 From: Asep Komarudin <68836805+pojokcodeid@users.noreply.github.com> Date: Thu, 2 Mar 2023 11:05:35 +0700 Subject: [PATCH] Updated 7. Contoh Custom Plugins (markdown) --- 7.-Contoh-Custom-Plugins.md | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) diff --git a/7.-Contoh-Custom-Plugins.md b/7.-Contoh-Custom-Plugins.md index cd3b094..0b98360 100644 --- a/7.-Contoh-Custom-Plugins.md +++ b/7.-Contoh-Custom-Plugins.md @@ -876,6 +876,23 @@ return { end, } ``` +- add null-ls config lua/custom/null-ls.lua +```lua +local null_ls = require("null-ls") +local formatting = null_ls.builtins.formatting +local diagnostics = null_ls.builtins.diagnostics +local m = { + sources = { + formatting.clang_format.with({ + filetypes = { + "cpp", + "c", + }, + }), + }, +} +return m +``` sumber :
https://github.com/p00f/clangd_extensions.nvim