Giter VIP home page Giter VIP logo

hypersonic.nvim's Introduction

๐—ช๐—ต๐—ผ ๐—”๐—บ ๐—œ

  • ๐šž๐šœ๐šŽ๐š›๐š—๐šŠ๐š–๐šŽ := ๐š๐š˜๐š–๐š’๐š’๐šœ
  • ๐šŒ๐šŠ๐š๐šŽ๐š๐š˜๐š›๐šข := ๐šœ๐š˜๐š๐š๐š ๐šŠ๐š›๐šŽ ๐š๐šŽ๐šŸ๐šŽ๐š•๐š˜๐š™๐š–๐šŽ๐š—๐š
  • ๐š•๐šŠ๐š—๐š๐šž๐šŠ๐š๐šŽ๐šœ := ๐™ถ๐š˜๐™ป๐šŠ๐š—๐š, ๐šƒ๐šข๐š™๐šŽ๐š‚๐šŒ๐š›๐š’๐š™๐š, ๐™ป๐šž๐šŠ
  • ๐š๐š˜๐š˜๐š•๐šœ := ๐™ฝ๐šŽ๐š˜๐š…๐š’๐š–, ๐™ถ๐š’๐š๐š‘๐šž๐š‹, ๐š‚๐š๐šŠ๐šŒ๐š”O๐šŸ๐šŽ๐š›๐š๐š•๐š˜๐š 

๐—ฅ๐—ฒ๐—ฎ๐—ฐ๐—ต ๐—บ๐—ฒ ๐—ผ๐—ป

๐—ฆ๐˜๐—ฎ๐˜๐˜€


hypersonic.nvim's People

Contributors

leekool avatar normturtle avatar tomiis4 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  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

hypersonic.nvim's Issues

Getting error of "unable to concatonate a nil value"

Hi, I tried it on the regex in the following code:

import re

r = re.compile(r"^[\w-\.]+@")

And there was an exception:

Error executing Lua callback: ...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/merge.lua:236: attempt to concatenate a nil value
stack traceback:
        ...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/merge.lua:236: in function 'Merge'
        .../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:56: in function 'get_informations'
        .../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:203: in function <.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:196>

The full regex I wanted to test is https://regexr.com/3e48o

Error: Hypersonic.nvim/lua/hypersonic/utils.lua:105: attempt to get length of a nil value

When I called the command directly I got the error below. It will be great if there is no error when a user calls it in normal mode.

Error executing Lua callback: .../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:45: Vim:Error executing Lua callback: ...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/utils.lua:105: attempt to get length of a nil value
stack traceback:
	...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/utils.lua:105: in function 'get_longest'
	.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:82: in function 'create_window'
	.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:141: in function <.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:138>
	[C]: in function 'cmd'
	.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:45: in function <.../share/nvim/lazy/lazy.nvim/lua/lazy/core/handler/cmd.lua:16>

bug: Errors out when emptying search bar

I found these 2 "bugs" when testing some regex search.

If I press / to start searching, it works. I can keep searching and inputting normal words or Regular expressions and it parses them. The problem comes when I erase the text on the searchbox and go to completely empty again. Step by step:

  1. I press / to start searching (I have Noice on for UI stuff):
    image

  2. I type what I want to search:
    image

  3. But when I erase to change my current search, this happens:
    image

It does allow me to write again my search prompt, but it errors out. It is not a breaking bug, but it's inconvenient to get this error when I change my mind about the search I am doing.

I also did notice that my Neovim instance (NVIM v0.10.0-dev-642+gc44d819ae) freezes when the plugin is enabled and I try to search for (, [, {, and their closing brackets. If that is a WIP feature, do let me know

  • The hypersonic.lua in my Neovim config, for context:
return {
  "tomiis4/hypersonic.nvim",
  event = "CmdlineEnter",
  cmd = "Hypersonic",
  config = function()
    require("hypersonic").setup({
      -- config
    })
  end,
}

Is it possible to change the wrapping quotes?

Problem

When there are some double quotes in the regex pattern being interpreted, the result is a bit confusing:

Proposed Solution

It will be great if we can customize the wrapping characters for every sub-pattern.

Personally, I will be happy if I can use a single space as the wrapping characters, i.e. I would prefer to use an invisible wrapping character.

Got an error with the cmdline `/` feature: Hypersonic.nvim/lua/hypersonic/utils.lua:46: bad argument #1 to 'sub' (string expected, got table)

To reproduce

  1. first call the cmdline feature :Hypersonic gr[ae]y. This should work without an error.
  2. press / and type gr[ae]y character by character. Should get the error after pressing [.

Error message

CmdlineChanged Autocommands for "*": Vim(append):Error executing lua callback: ...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/utils.lua:46: bad argument #1 to 'sub' (string expected, got table)
stack traceback:
	[C]: in function 'sub'
	...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/utils.lua:46: in function 'is_escape_char'
	...share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/merge.lua:219: in function 'Merge'
	.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:56: in function 'get_informations'
	.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:203: in function 'explain'
	.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:182: in function <.../share/nvim/lazy/Hypersonic.nvim/lua/hypersonic/init.lua:176>

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.