diff options
author | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-14 21:58:45 +0100 |
---|---|---|
committer | Gustaf Rydholm <gustaf.rydholm@gmail.com> | 2021-03-14 21:58:45 +0100 |
commit | 8577c3b7cba714551d3537f3337ee2490bd20106 (patch) | |
tree | e881c2058f73ee5e67c68fcfac0df4b80c7de632 /.config/nvim/lua/lightbulb | |
parent | 7f9c2629c4eb416fcda906d6ad25457b7cff1e22 (diff) |
started moving to pure lua config
Diffstat (limited to '.config/nvim/lua/lightbulb')
-rw-r--r-- | .config/nvim/lua/lightbulb/init.lua | 36 |
1 files changed, 36 insertions, 0 deletions
diff --git a/.config/nvim/lua/lightbulb/init.lua b/.config/nvim/lua/lightbulb/init.lua new file mode 100644 index 0000000..1469c5b --- /dev/null +++ b/.config/nvim/lua/lightbulb/init.lua @@ -0,0 +1,36 @@ +-- Showing defaults +require'nvim-lightbulb'.update_lightbulb { + sign = { + enabled = true, + -- Priority of the gutter sign + priority = 10, + }, + float = { + enabled = false, + -- Text to show in the popup float + text = "💡", + -- Available keys for window options: + -- - height of floating window + -- - width of floating window + -- - wrap_at character to wrap at for computing height + -- - max_width maximal width of floating window + -- - max_height maximal height of floating window + -- - pad_left number of columns to pad contents at left + -- - pad_right number of columns to pad contents at right + -- - pad_top number of lines to pad contents at top + -- - pad_bottom number of lines to pad contents at bottom + -- - offset_x x-axis offset of the floating window + -- - offset_y y-axis offset of the floating window + -- - anchor corner of float to place at the cursor (NW, NE, SW, SE) + -- - winblend transparency of the window (0-100) + win_opts = {}, + }, + virtual_text = { + enabled = false, + -- Text to show at virtual text + text = "💡", + } +} + + +vim.cmd [[autocmd CursorHold,CursorHoldI * lua require'nvim-lightbulb'.update_lightbulb()]] |