Giter Club home page Giter Club logo

Comments (8)

rmagatti avatar rmagatti commented on July 2, 2024

Yeah the hidden dependency on vimp for mappings isn't great, I do plan on cleaning that up. Thanks for the submission @akinsho always a pleasure to have you around 😊

I've only seen that error you mentioned when it fails to create the new window, it's then trying to position the cursor on a window it was ultimately unable to create.

I can fix the error up by not trying to use the new_window value if it doesn't exist but the root of the issue of it being unable to create the window (assumed) is still unknown to me 🤔. Do you see anything else in messages at all? Also does the float even show up?

from goto-preview.

akinsho avatar akinsho commented on July 2, 2024

@rmagatti I wonder if it might be due to how I've tried to work around the mapping issue since I can't see any other way to access this plugins functions without using vimp which I haven't/would rather not install 😅 . Maybe calling the lsp_request function at this point causes some weird issue.

    use {
      "rmagatti/goto-preview",
      config = function()
        local preview = require("goto-preview")
        preview.setup {}
		-- home grown copy of functionality from vimp etc.
        as.nnoremap("gpd", preview.lsp_request(true))
      end
    }

from goto-preview.

akinsho avatar akinsho commented on July 2, 2024

In terms of what else I see, it seems to cause a buffer to be created with the name of the file appended with some characters.
image

from goto-preview.

rmagatti avatar rmagatti commented on July 2, 2024

Hey @akinsho the PR should address the mapping issues.

from goto-preview.

rmagatti avatar rmagatti commented on July 2, 2024

In terms of what else I see, it seems to cause a buffer to be created with the name of the file appended with some characters.

Now this one I'm not really sure what it is. Mind trying out the new mapping and letting me know if this new weirdly named buffer still happens?

from goto-preview.

akinsho avatar akinsho commented on July 2, 2024

@rmagatti I just tried the PR which is helpful thanks, I'm still seeing the bug though so I'm trying to whittle it down to a minimal init.lua and see what might be triggering it

from goto-preview.

akinsho avatar akinsho commented on July 2, 2024

@rmagatti done a bit of debugging with quite a minimal init.lua and it seems the underlying error I'm seeing is Error executing vim.schedule lua callback: ...site/pack/packer/start/goto-preview/lua/goto-preview.lua:79: Cursor position outside buffer. Seems setting the cursor is what is failing but I'm not sure why

from goto-preview.

rmagatti avatar rmagatti commented on July 2, 2024

Created that new issue to track what you're describing, let's continue there so I can merge the PR and close this one. 😊

from goto-preview.

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.