From 729f60c471c67b9f06ba36c53816fb38e0bc1c0f Mon Sep 17 00:00:00 2001 From: Bruno BELANYI Date: Fri, 25 Feb 2022 18:19:41 +0100 Subject: [PATCH] home: vim: configure 'null-ls' for 'nix' --- home/vim/after/ftplugin/nix.vim | 10 ++++++++++ 1 file changed, 10 insertions(+) create mode 100644 home/vim/after/ftplugin/nix.vim diff --git a/home/vim/after/ftplugin/nix.vim b/home/vim/after/ftplugin/nix.vim new file mode 100644 index 0000000..a5056c8 --- /dev/null +++ b/home/vim/after/ftplugin/nix.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.nixpkgs_fmt, +}) +EOF