add wakatime, fix cokeline config after update

master
Drake 2 years ago
parent 0656d65d01
commit 9b2b0fb3b5

@ -22,6 +22,7 @@ require('paq')({
'hrsh7th/cmp-nvim-lua', 'hrsh7th/cmp-nvim-lua',
'hrsh7th/vim-vsnip', 'hrsh7th/vim-vsnip',
'hrsh7th/cmp-vsnip', 'hrsh7th/cmp-vsnip',
'wakatime/vim-wakatime',
}) })
require('colorscheme') require('colorscheme')
require('config') require('config')

@ -45,14 +45,21 @@ require('lualine').setup({
-- Credit to the original author of cokeline for creating most of this config -- Credit to the original author of cokeline for creating most of this config
require('cokeline').setup({ require('cokeline').setup({
default_hl = { default_hl = {
focused = { --[[focused = {
fg = get_hex('Normal', 'fg'), fg = get_hex('Normal', 'fg'),
bg = get_hex('Background', 'bg'), bg = get_hex('Background', 'bg'),
}, },
unfocused = { unfocused = {
fg = get_hex('Comment', 'fg'), fg = get_hex('Comment', 'fg'),
bg = get_hex('Background', 'bg'), bg = get_hex('Background', 'bg'),
}, },--]]
fg = function (buffer)
if buffer.is_focused then
return get_hex('Normal', 'fg')
end
return get_hex('Comment', 'fg')
end,
bg = function(_) return get_hex('Background', 'bg') end
}, },
components = { components = {

Loading…
Cancel
Save