vim: fix formatting

This commit is contained in:
Fernando Schauenburg 2022-09-26 16:13:48 +02:00
parent 7b5f99f723
commit 734b4ec53e

View file

@ -13,7 +13,7 @@ local M = {
styles = require('colorbuddy.init').styles, styles = require('colorbuddy.init').styles,
} }
function M.setup(opts) M.setup = function(opts)
if not opts then opts = {} end if not opts then opts = {} end
for k, v in pairs(defaults) do for k, v in pairs(defaults) do
@ -22,7 +22,7 @@ function M.setup(opts)
-- typos are annoying -- typos are annoying
for k, _ in pairs(opts) do for k, _ in pairs(opts) do
if defaults[k] == nil then print("neosolarized: unknown setting: ", k) end if defaults[k] == nil then print("solarized: unknown setting: ", k) end
end end
cmd([[ cmd([[
@ -34,9 +34,11 @@ function M.setup(opts)
vim.cmd("hi clear") vim.cmd("hi clear")
end end
if fn.exists('syntax_on') then cmd('syntax reset') end if fn.exists('syntax_on') then
cmd('syntax reset')
end
vim.g.colors_name = 'neosolarized' vim.g.colors_name = 'solarized'
local Color = M.Color local Color = M.Color
local colors = M.colors local colors = M.colors