Comments (3)
I think would be a good idea exposing a easier mechanism to modify very subjective settings, such as window border. A common pattern I see frequently when dealing with floating windows is something along the lines:
require('plugin').setup({
height = 0.8, -- 0.0 to 1.0
width = 0.8, -- 0.0 to 1.0
x = 0.5,
y = 0.5,
border = "None"
})
IMHO This is a good middle ground between exposing every option and rewriting the function.
from nvim-fzy.
It would make customizing the border (or style) more convenient, but I don't think it's justified because if you want to customize any of the other options you very quickly end up wanting a function to compute row/col/width/height dynamically. So it would end up adding a second way to customize it.
Some time ago there was some discussion around having a border
or vim.ui.border
setting in neovim itself, and encourage plugins to use that to have a more consistent ui, but nobody pushed that forward.
Maybe worth bringing that up again. I'd certainly use that as default value if it existed.
from nvim-fzy.
But does a single setting cut this? It's not like I want no borders at all, just not in some places... E.g. I definitely want the borders in nvim-dap-ui, but not in this plugin.
from nvim-fzy.
Related Issues (9)
- Whether to add a preview for floating win like fzf.vim? HOT 2
- expose popup size in `pick_one()` HOT 3
- Live grep example HOT 3
- [Question] Resize window HOT 2
- Expose a function to customize the fuzzy finder command HOT 1
- fzy.lua:182: attempt to call upvalue 'on_choice' (a nil value) HOT 4
- how can i replace current buffer when finding files? HOT 2
- Request: fzy native module HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from nvim-fzy.