Giter Club home page Giter Club logo

Comments (7)

folke avatar folke commented on June 29, 2024 2

You're setting current window options. The ones with wo. You need to use o for that.

from lazy.nvim.

folke avatar folke commented on June 29, 2024 2

That option won't apply on new buffers either, so no use in putting it in an if condition.
It's an option you can only set for the current buffer

from lazy.nvim.

MordechaiHadad avatar MordechaiHadad commented on June 29, 2024 1

I see... I was not aware of that too, it's one of those options that I added when I just copypasted configs from youtube before I even knew how to exit vim

anyhoo, thank you for this plugin! it feels like magic to use it

from lazy.nvim.

MordechaiHadad avatar MordechaiHadad commented on June 29, 2024

@folke I have changed all of my wo to o instead
This issue still persists, the lazy plugin's page is the only non modifiable "filetype" that I get this error with.
MordechaiHadad/nvim@1a2fbcd

from lazy.nvim.

MordechaiHadad avatar MordechaiHadad commented on June 29, 2024

I am unsure how this is invalid since this error only ever happened to me when using lazy the way i described.

from lazy.nvim.

folke avatar folke commented on June 29, 2024

The same with the fileencoding one. That will set the file encoding of the current buffer, which would be lazy in this case. The lazy window has modifieble=false set, so you can't make any changes to that window

Probably best to read up on options and more specifically on what buffer-local and window-local means.

The options you are (were) setting do not behave as you probably expect.

image

from lazy.nvim.

MordechaiHadad avatar MordechaiHadad commented on June 29, 2024

fair enough! thank you I simply made an if check if buffer is modifiable
😞 I was not aware they also "take effect" or at least try to on non modifiable buffers

from lazy.nvim.

Related Issues (20)

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.