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