perf(plugin): use lua for plugin initialization

SEE #10
pull/14/head
Iron-E 3 years ago
parent 3b85822b91
commit e3cf6d4c3e
No known key found for this signature in database
GPG Key ID: 19B71B7B7B021D22

@ -0,0 +1,20 @@
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 */]]
-- The default highlight groups (for colors) are specified below.
-- Change these default colors by defining or linking the corresponding highlight group.
exe
[[
highlight default link LibmodalPrompt ModeMsg
highlight default link LibmodalStar StatusLine
]]

@ -1,17 +0,0 @@
if exists('g:loaded_libmodal')
finish
endif
let g:loaded_libmodal = 1
if !exists('g:libmodalTimeouts')
let g:libmodalTimeouts = &timeout
endif
" ************************************************************
" * User Configuration
" ************************************************************
" The default highlight groups (for colors) are specified below.
" Change these default colors by defining or linking the corresponding highlight group.
highlight default link LibmodalPrompt ModeMsg
highlight default link LibmodalStar StatusLine
Loading…
Cancel
Save