home: vim: only use 'null-ls' sources if available
This avoids the big red warning on each file that tries to use those sources...
This commit is contained in:
parent
8155f6be4c
commit
fb49a1df14
6 changed files with 50 additions and 6 deletions
|
|
@ -4,8 +4,13 @@ call ftplugined#check_undo_ft()
|
|||
" Set-up LSP, linters, formatters
|
||||
lua << EOF
|
||||
local null_ls = require("null-ls")
|
||||
local utils = require("ambroisie.utils")
|
||||
|
||||
null_ls.register({
|
||||
null_ls.builtins.formatting.brittany,
|
||||
null_ls.builtins.formatting.brittany.with({
|
||||
-- Only used if available
|
||||
condition = utils.is_executable_condition("brittany"),
|
||||
}),
|
||||
})
|
||||
EOF
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue