From 7487344952be827f50bf5bab9fb3091c41001cce Mon Sep 17 00:00:00 2001 From: Robert Günzler Date: Mon, 30 Aug 2021 18:22:40 +0200 Subject: vim: fix lightbulb configuration --- .vim/lua/plugins.lua | 22 +++++++++++++--------- 1 file changed, 13 insertions(+), 9 deletions(-) diff --git a/.vim/lua/plugins.lua b/.vim/lua/plugins.lua index 44c8e49..7b15a7a 100644 --- a/.vim/lua/plugins.lua +++ b/.vim/lua/plugins.lua @@ -98,31 +98,35 @@ return require('packer').startup({function() end} use {'kosayoda/nvim-lightbulb', -- {{{ + branch = 'virtual-text-column', config = function() - require('nvim-lightbulb').update_lightbulb { + _G.lightbulb_config = { sign = { - enabled = true, + enabled = false, priority = 10, }, float = { - enabled = true, - text = '󱉵 ', + enabled = false, + text = '󰌵', win_opts = {}, }, virtual_text = { - enabled = false, - text = '󱉵 ', + enabled = true, + text = '← 󰌵', + text_pos = 'eol', + column = -1, }, status_text = { enabled = false, + text = '󰌵', + test_unavailable = '', } } - vim.fn.sign_define('LightBulbSign', {text="⚐", texthl="LightBulbVirtualText"}) - + -- vim.fn.sign_define({{name='LightBulbSign', text='󰌵', texthl='LightBulbVirtualText'}}) augroup { lightbulb = { - {'CursorHold', '*', "lua require('nvim-lightbulb').update_lightbulb()"} + {'CursorHold', '*', [[lua require('nvim-lightbulb').update_lightbulb(_G.lightbulb_config)]]} } } end} -- }}} -- cgit 1.4.1