Code Monkey home page Code Monkey logo

Comments (3)

saccarosium avatar saccarosium commented on May 18, 2024 1

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.

mfussenegger avatar mfussenegger commented on May 18, 2024

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.

danrot avatar danrot commented on May 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.