fix lunarvim first-run issue

This commit is contained in:
Sean Buckley 2023-10-16 11:00:18 -04:00
parent 95e38b2ee7
commit be3e1d08d0

View file

@ -4,8 +4,9 @@ vim.opt.whichwrap = ""
vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pylyzer" }) vim.list_extend(lvim.lsp.automatic_configuration.skipped_servers, { "pylyzer" })
-- null-ls is missing on first-run. only do this if null-ls exists
if pcall(require, "null-ls") then
lvim.format_on_save = true lvim.format_on_save = true
local formatters = require "lvim.lsp.null-ls.formatters" local formatters = require "lvim.lsp.null-ls.formatters"
formatters.setup { formatters.setup {
{ exe = "nixpkgs-fmt", filetypes = { "nix" } }, { exe = "nixpkgs-fmt", filetypes = { "nix" } },
@ -21,3 +22,4 @@ formatters.setup {
}, },
}, },
} }
end