support changing border and other options
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 35/100
Research direction
Start by locating the float-window creation code and the buffer and window option handling described in the issue, including vim.api.nvim_buf_set_option and vim.api.nvim_win_set_option. Determine how user-supplied options, borders, and border-buffer colors should be exposed, then verify that float windows retain their defaults while accepting the requested overrides.
Written by the indexing model from the issue text.
Description
It would be cool if the user can have more control over the float windows, such as passing window options to be executed, set border and border buffer colors .. etc.
For example:
local set_buf_opts = function(bufnr, buf_opts)
for k, v in pairs(vim.tbl_extend("keep", buf_opts, { -- defaults
bufhidden = "wipe",
buflisted = false,
swapfile = false,
buftype = "nofile"
})) do vim.api.nvim_buf_set_option(bufnr, k, v) end
end
local set_win_opts = function(win_id, win_opts)
for k, v in pairs(vim.tbl_extend("keep", win_opts, { -- defaults
signcolumn = 'no',
foldenable = false,
list = false,
wrap = false,
spell = false,
number = false,
relativenumber = false,
winhl = "NormalFloat:Normal"
})) do vim.api.nvim_win_set_option(win_id, k, v) end
end
- Dominant language
- Lua
- Stars
- 3.5k
- Forks
- 340
- PR merge metrics
- No merged PRs in 30d
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nvim-lua/plenary.nvim
-
Difficulty 1/5 Under an hour Newbie friendliness 88/100
nvim-lua/plenary.nvim#682 ·
-
Difficulty 1/5 Under an hour Newbie friendliness 72/100
nvim-lua/plenary.nvim#680 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 45/100
nvim-lua/plenary.nvim#675 ·
-
Difficulty 4/5 3-5 days Newbie friendliness 28/100
nvim-lua/plenary.nvim#672 · 1 comment ·
-
Difficulty 4/5 3-5 days Newbie friendliness 25/100
nvim-lua/plenary.nvim#671 · 1 comment ·
All issues in nvim-lua/plenary.nvim
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
-
Difficulty 1/5 Under an hour Newbie friendliness 94/100
codymikol/multiverse.nvim#320 ·
-
Difficulty 2/5 1-3 hours Newbie friendliness 70/100
-
Good First Issue
Difficulty 1/5 1-3 hours Newbie friendliness 78/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 84/100