From 5947ec42175a6e7cf2e4b100c06dd511d8ce7f14 Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 25 Feb 2022 13:07:31 +0100 Subject: [PATCH] home: vim: configure 'null-ls' for 'cpp' --- home/vim/after/ftplugin/cpp.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 home/vim/after/ftplugin/cpp.vim diff --git a/home/vim/after/ftplugin/cpp.vim b/home/vim/after/ftplugin/cpp.vim new file mode 100644 index 0000000..7e5a367 --- /dev/null +++ b/home/vim/after/ftplugin/cpp.vim @@ -0,0 +1,10 @@ +" Create the `b:undo_ftplugin` variable if it doesn't exist +call ftplugined#check_undo_ft() + +" Set-up LSP, linters, formatters +lua << EOF +local null_ls = require("null-ls") +null_ls.register({ + null_ls.builtins.formatting.clang_format, +}) +EOF