mirror of
https://github.com/LunarVim/LunarVim.git
synced 2025-07-21 11:14:42 +02:00
protected call for formatter.nvim
This commit is contained in:
parent
eceb656b4b
commit
359b6fd8e4
3 changed files with 8 additions and 5 deletions
|
@ -48,8 +48,12 @@ end
|
|||
-- end
|
||||
-- end
|
||||
-- end
|
||||
local status_ok, formatter = pcall(require, "formatter")
|
||||
if not status_ok then
|
||||
return
|
||||
end
|
||||
|
||||
require("formatter").setup {}
|
||||
formatter.setup {}
|
||||
|
||||
if not O.format_on_save then
|
||||
vim.cmd [[if exists('#autoformat#BufWritePost')
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue