diff options
| author | Robert Günzler <r@gnzler.io> | 2021-08-30 18:22:40 +0200 |
|---|---|---|
| committer | Robert Günzler <r@gnzler.io> | 2021-08-31 12:41:20 +0200 |
| commit | 7487344952be827f50bf5bab9fb3091c41001cce (patch) | |
| tree | bdb616aa18627ebfc27ecb4f0ad4b9795c53959a /.vim | |
| parent | 8ed2ab5619f34bc9e3b1b175412d05e78ca4f79d (diff) | |
vim: fix lightbulb configuration
Diffstat (limited to '.vim')
| -rw-r--r-- | .vim/lua/plugins.lua | 22 |
1 files 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} -- }}} |