Giter Site home page Giter Site logo

folding-nvim's People

Contributors

pierreglaser avatar timbedard avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

folding-nvim's Issues

Telescope folding

telescope
If the foldinglevel is not set to a high number Telescope window is folded.

Fold on opening/writing buffer

Hello, is it possible to disable folding when opening/writing a buffer? Right now it is being done automatically. I tried ( in the lua/folding.lua file ) commenting out the M.update_folds() method after M.setup_plugin(), but then it never finds any fold afterwards.

Folds all regions when file is opened

Does the package immediately folds all regions when the file is opened? Because this is happening on my machine. If this is an intentional behaviour, can it be disabled? I'm using this package for Typescript files.

New LSP request callback signature incompatible

Hello!

I noticed this plugin stopped working for me a little while ago, and, after a bit of debugging, I noticed that the LSP request callback handler M.fold_handler() has a method signature that is different than the signature specified in the documentation:

folding-nvim:

  function M.fold_handler(_, _, result, _, bufnr)

:h lsp-handler:

  function(err, result, ctx, config)

I've seen some of the newest NeoVim updates breaking a lot of LSP plugins lately, and, when I checked, that's what I think happened. The issue seems to come from bufnr being nil. Supposedly, ctx['bufnr'] is where the new buffer number value should come from. So I changed that and moved the result parameter to match the doc.

So, all in all, what made it work for me was doing this:

  function M.fold_handler(_, result, ctx, _)
      local bufnr = ctx['bufnr']
  ...

I am by no means an expert when it comes to this stuff, but I hope this helps!

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.