Skip to content

Commit

Permalink
add option to modify the floating window border in the setup function
Browse files Browse the repository at this point in the history
  • Loading branch information
saviocmc committed Oct 14, 2021
1 parent b04d834 commit 835f847
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions lua/goto-preview.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ local M = {
conf = {
width = 120; -- Width of the floating window
height = 15; -- Height of the floating window
border = {"", "" ,"", "", "", "", "", ""}; -- Border characters of the floating window
default_mappings = false; -- Bind default mappings
resizing_mappings = false;
debug = false; -- Print debug information
Expand Down
2 changes: 1 addition & 1 deletion lua/goto-preview/lib.lua
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ local open_floating_win = function(target, position)
relative='win',
width=M.conf.width,
height=M.conf.height,
border={"", "" ,"", "", "", "", "", ""},
border=M.conf.border,
bufpos=bufpos,
win=vim.api.nvim_get_current_win()
})
Expand Down

0 comments on commit 835f847

Please sign in to comment.