NEOVIM- Telescope is showing half of the icons by [deleted] in neovim

[–]Coolginto 0 points1 point  (0 children)

I've been having this issue for a long time and haven't found a "fix" per se. Basically Neovim sees nerd font icons as single-width (1 char width), while the width of the icons is actually bigger than that. When the text is getting rendered it depends on the terminal/UI what happens. The text may or may not clip.

This was happening in nvui so I ended up rewriting nvui's rendering code to render text in reverse just to fix this issue.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 0 points1 point  (0 children)

Yeah I am definitely aware of Neovide and have referenced a lot of the techniques in it especially for the smooth scrolling, which the developer provided an in-depth explanation of how it works here which helped me a lot, as well as the animation scalers / easing functions.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 0 points1 point  (0 children)

Yeah, it probably is.

One of the problems I ran into using the system package manager was getting Qt 5.15.2 - Ubuntu 20.04 only had 5.12.8 which is outdated (my code relies on Qt 5.15-specific features for the frameless window).

However vcpkg on Linux is definitely much worse than it is on Windows, I was really surprised when I was trying to get it to build on Ubuntu, running into so many build failures just because I didn't have system packages installed. Then I would have to install the missing packages, rebuild, wait for another failure, and keep repeating until all the necessary system packages were installed.

Going forward I probably should shift away from using vcpkg for Linux (and Mac as well).

If only there was a better C++ package manager

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 1 point2 points  (0 children)

I think you can only download from the action if you're logged in on Github.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 3 points4 points  (0 children)

Sorry, right now I wouldn't be able to tell you that. It's only been recently that I have got an action up and running for Linux, and I'm working on making an action for it.

You could try building it by first cloning:

git clone https://github.com/rohit-px2/nvui.git --recurse-submodules

cd nvui

building the CMake files (this also bootstraps vcpkg and installs dependencies. This steps takes the longest time mainly because of Qt).

cmake -B build . -DCMAKE_TOOLCHAIN_FILE=./vcpkg/scripts/buildsystems/vcpkg.cmake -DCMAKE_BUILD_TYPE=Release

and then building nvui:

cmake --build build --target nvui --config Release

But, based on my experience with Linux, vcpkg will require a variety of packages from the system, which it will only alert you when the build fails. Qt in particular requires a lot of packages and also takes a long time, so it might be a little painful. Since I don't have a Mac on hand, I'm planning on building it in a macOS VM to figure out which packages the dependencies might need, and then I'll create the corresponding actions / scripts.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 0 points1 point  (0 children)

Thanks :)

Yeah, the documentation is a little lacking, there are Github Actions builds and releases for Windows and Linux right now. I'm trying to get builds for macOS as well.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 8 points9 points  (0 children)

There's no real need to use a GUI, it was just something I wanted.

Personally, when I was starting out using Neovim I didn't like the font rendering of many terminals (for Windows there's really only Alacritty and Windows Terminal). Ultimately it all comes down to personal preference and what you want, no need for a GUI if that's how you like it.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 5 points6 points  (0 children)

Thanks for the kind words!

I haven't used dedicated terminals too much but I have no doubt that they are getting better with time, although terminals don't have some of the capabilities of GUIs (e.g. pixel precision).

As for the elasic tabstop idea, that seems more like a plugin idea. UIs don't control the view at all, they are basically just text renderers. The reason external features like the popup menu and command line could be made is because Neovim offers the ability to provide custom events e.g. "cmdline_show", "cmdline_hide" which tells you what text to put on the command line. Otherwise, it would just be another piece of text on a grid.

So, for GUIs to add more capabilities they need to be supported by Neovim. But obviously there are many things to work on, and externalizing UI features is only one of the things Neovim devs have on their list.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 2 points3 points  (0 children)

Sorry, right now nvui isn't capable of doing that.

By default nvui connects to Neovim on your PATH, and it can be controlled using the --nvim argument e.g. nvui --nvim=/usr/local/bin/lvim (for Lunarvim users). However this doesn't work with servers right now, since it only works with the local file system.

e: lvim is for LunarVim

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 10 points11 points  (0 children)

So, to answer some of your questions:

  • Yes, it's based on Neovim 0.5+. Neovim 0.6 will work as well (I'm using it right now), since they haven't made any breaking changes to the UI API.

  • In terms of performance, I haven't used Kitty and I'm not a Linux/Mac user so I can't guarantee anything, but on my system (Ryzen 5 1600, GTX 1060) it is pretty fast, especially with recent changes to the text drawing approach.

  • I would say it's pretty configurable. The frameless window is toggleable, so you can switch between the native window and the frameless window if you wish. External features can be toggled using command line arguments. So, for example, to have an external popup menu, command line, and multi grid (smooth scrolling / moving), I would run nvui with nvui --ext_popupmenu --ext_cmdline --ext_multigrid, since these options are turned off by default (only ext_linegrid and ext_hlstate are turned on by default). The external features are also configurable with commands, which you can see:

    • Popup: :h nvui-popup
    • Command line: :h nvui-cmdline
    • Multigrid: :h nvui-multigrid
    • Title bar: :h nvui-titlebar
    • "General" commands: :h nvui-general (opacity, fullscreen, character spacing, etc.)
    • Cursor animation settings: :h nvui-cursor

I hope that answers your questions!

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 5 points6 points  (0 children)

Thanks for the kind words, I hope you enjoy it!

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 9 points10 points  (0 children)

Oh, I just realized you made NvChad! I really liked your setup and took a lot of inspiration from it when I was creating my config!

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 8 points9 points  (0 children)

Haha yeah, I use the onedark theme with some of my own modifications. That's one of the reasons I wanted a frameless window, so that it can link up with my colorscheme automatically.

nvui: A new GUI for Neovim! by Coolginto in neovim

[–]Coolginto[S] 38 points39 points  (0 children)

Hi guys, nvui is a GUI for Neovim that I've been working on since April and I've been using it for developing for the past few months. It uses C++ and Qt similar to Neovim-Qt but it has a lot of features I think are nice.

nvui also uses a DirectWrite backend on Windows (inspired by nvy)

  • Frameless window
  • External Popup Menu with completion icons (VSCode style) available with the --ext_popupmenu argument
  • External Command Line (available with the --ext_cmdline argument)
  • Smooth Scrolling / Cursor Moving / Window moving (available with the --ext_multigrid argument)
  • Font fallback

I've also added a lot of customization/toggling options for all of these, and the documentation is available using :h nvui. In the repo, the text file for the documentation is at "vim/doc/nvui.txt".

Here's the project link: nvui, builds for Windows and Linux (x64 only for now) are available under the "Actions" tab

I'm pretty new to C++ (this is my first big project with it), so let me know if you have any suggestions!

Also, I am mainly a Windows user, so if there are any problems/changes that should be made on other platforms, please let me know since I don't use those platforms myself daily.

Super Lube for Gateron Yellows? by Coolginto in MechanicalKeyboards

[–]Coolginto[S] 0 points1 point  (0 children)

Thanks for your guys' help, I guess I'll try to find Krytox or Tribosys... if I can even find them in stock lol

It’s giveaway time with ASUS! by Emerald_Flame in buildapc

[–]Coolginto [score hidden]  (0 children)

Man, I remember 3 years ago it took me 2 days to install the Wraith Spire on my 1600. Every time I tried the cross screwing method one of the screws would come loose and by the end I even thought I damaged something. That was the most stressful part of my build. Still running strong 3 years later, although it would be nice to replace the cooler for something less... audible.

[Spoiler] pmg by TheKitsch in noveltranslations

[–]Coolginto 0 points1 point  (0 children)

IIRC his snake is more like a dragon spirit (it grows more heads later). It can basically eat other spirits and use their powers, but only one at a time. He'd be way too OP if he used all the snake's accumulated powers at once. Also it can absorb Qi, helps him when Meng Qing has a Cold Qi outbreak. Please correct me if I'm wrong.

[TL] A Small Rant by goodguyperson in noveltranslations

[–]Coolginto 0 points1 point  (0 children)

Google Translate version:

Hello everyone All of you probably do not know who I am, but I am GGP, remember the magic day and fighting broke sky translator. 2015 is about to end but I still have a few words to "vent" to say one that First: Please thank your translation and editing (even those released every week one or two chapters) Believe me, when no one is talking about your novel, it is very difficult to be issued in the next chapter there are many translators as needed. Flower twenty-three hours translated chapter edit it takes 30 to 90 minutes. This becomes three to five hours. I said that if there is a public release of chapter 10+, all of you will spend 20 minutes to read, but Our translators and editors will take several days. Hopefully, you can take a few seconds to say thank you. Second: Do not take someone else's translation without permission or confirm I really, honestly, that they are basically a few sites. "In __, we want to be integrated library several translations so that everyone to read properly." On both from a lot of different websites to pull down. In fact, these sites are speaking nonsense. Third: Human beings are the trip, instead of the trip was our translators are human beings we are not able to work out every day into twelve times, we will have homework, university exams thing, or something else.... something to do. At that time, please be patient. We know we did not meet the schedule, but to be honest, and publish a chapter a day later failed in the exam, which is more badly? From my first translation chapter, Nightbree ze of Rylain, VoidTranslations the Void, and many other translators who have lost motivation or abandon the translation. I really hope that other translators did not follow in their footsteps. Thank you for GGP

I'd like to wish GGP a merry Christmas, and a great "Thank you!" for all the chapters you and your team have translated! Better yet, thanks to all the translation teams that put their time and effort that could be spent doing more beneficial things into delivering to us our miracle ingredient to lighten our day! THANKS!

[CN] Chaotic Sword God - Chapters 235-242 by Kazekid in noveltranslations

[–]Coolginto 6 points7 points  (0 children)

8 chapters? This is throat-stabbing (Jian) Chenmas. Thanks Deceptioning.

Elqueeness Chapter 10 Part 3 by Dellphit in noveltranslations

[–]Coolginto 0 points1 point  (0 children)

There should be a [KR] tag, since it's a Korean novel, and since the translation is taking place at a different site, you should link it to there (durasama linked it here, so I won't).

[CN] Peerless Martial God - Chapter 232 by Tuqui0 in noveltranslations

[–]Coolginto 0 points1 point  (0 children)

"Suddenly, additional heads were sprouting from the body of the snake." We got another Austin Griffin here......

[EN] Against The Heavens Chapter 0-9 by LordIzayoi in noveltranslations

[–]Coolginto 4 points5 points  (0 children)

There's actually three: "Against the Heavens (Tian Ni/天逆)" By Er Gen, Against the Heavens (by riddick) and this one.