perf(plugin): simplify lua

pull/14/head
Iron-E 3 years ago
parent 3aff4c7108
commit 06648c277b
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

@ -1,19 +1,13 @@
local exe = vim.api.nvim_command
local g = vim.g
local go = vim.go
if g.loaded_libmodal then return end
g.loaded_libmodal = true
if g.libmodalTimeouts == nil then
g.libmodalTimeouts = go.timeout
end
--[[/* User Configuration */]]
g.libmodalTimeouts = g.libmodalTimeouts or vim.go.timeout
-- The default highlight groups (for colors) are specified below.
-- Change these default colors by defining or linking the corresponding highlight group.
exe
vim.cmd
[[
highlight default link LibmodalPrompt ModeMsg
highlight default link LibmodalStar StatusLine

Loading…
Cancel
Save