2022-02-25 18:19:41 +01:00
|
|
|
" 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")
|
2022-02-28 11:31:26 +01:00
|
|
|
local utils = require("ambroisie.utils")
|
|
|
|
|
2022-02-25 18:19:41 +01:00
|
|
|
null_ls.register({
|
2022-02-28 11:31:26 +01:00
|
|
|
null_ls.builtins.formatting.nixpkgs_fmt.with({
|
|
|
|
-- Only used if available
|
|
|
|
condition = utils.is_executable_condition("nixpkgs-fmt"),
|
|
|
|
}),
|
2022-02-25 18:19:41 +01:00
|
|
|
})
|
|
|
|
EOF
|