vim: fix formatting
This commit is contained in:
parent
7b5f99f723
commit
734b4ec53e
1 changed files with 282 additions and 280 deletions
|
@ -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
|
||||||
|
|
Loading…
Add table
Reference in a new issue