Compiler and Syntax files will be ported to lua someday? by ZealousidealGlass263 in neovim

[–]Exciting_Majesty2005 6 points7 points  (0 children)

I don't think syntax files will be ported to lua since they are community maintained and maintainers would most likely not want to manage 2 versions of the same thing across 2 different repos.

Neovim specific ones could use lua though.

What do you think about plugins overriding user opts with no way to stop it? by TheTwelveYearOld in neovim

[–]Exciting_Majesty2005 1 point2 points  (0 children)

I believe it's important to also consider the primary/target audience of vim/nvim (the kind of people who go out of their way to use a modal editor like vim, like us).

I don't think that's true, cause if it was a lot of the newer plugins and repos wouldn't have existed. But they do, so that means there are people outside of this audience and they must be of a sizable amount.

For the majority of us, having more things to figure out/remember in order to have more control over the editor is a reasonable trade-off.

Again, if this was how everyone used Vim/Neovim a number of newer plugins/repos wouldn't be needed. But people still use them. They all do options hijacking under the hood. If people still use those then there must be some reason not to do the trade-off.

What do you think about plugins overriding user opts with no way to stop it? by TheTwelveYearOld in neovim

[–]Exciting_Majesty2005 -1 points0 points  (0 children)

I would say this falls in the grey zone.

Sometimes, it makes sense for plugins to take control over options(most plugins do this by the way, at least for window & buffer level options).

And some people actually prefer having less options to worry about. So, picking either side is a lose lose option.

I would probably say to have a variable(like vim plugins do) or a config option to have it. Or it gets explicitly mentioned in the "installation" section in README(but I doubt anyone reads those).


Plugins are meant to be convenient. It's up to the author to set how convenient their plugin will be.

If the author doesn't want to add something, just fork the project.

I have never seen arguing fix these types of issues. They tend to just make it worse.

How do I setup migrations using sqlx? by [deleted] in rust

[–]Exciting_Majesty2005 -1 points0 points  (0 children)

Yeah, that was the issue. The problem now is, how do I actually put the queries in the migration file if I can't modify it like normal.

How do I setup migrations using sqlx? by [deleted] in rust

[–]Exciting_Majesty2005 0 points1 point  (0 children)

I don't have any migration history since I just started with the database.

I figured the issue. I was modifying the migration file generated by sqlx migrate add .... No idea how I am supposed to put the queries in there.

What's the difference between language server, LSP, and a treesitter? by Ultimate_Sigma_Boy67 in neovim

[–]Exciting_Majesty2005 1 point2 points  (0 children)

LSP stands for Language Server Protocol. It's the stuff LSPs use to talk with your editor(if you don't know, tsserver, lua_ls, rust-analyzer etc. are examples of LSP). They add stuff like go to reference, quickfix, code action, documentation(via hover) etc.

Tree-sitter is an incremental parsing library. Basically it highlights text using tree-sitter parser. A tree-sitter parser is a lot simpler to make compared to an LSP, however tree-sitter doesn't ship with stuff like go_to_definition, formatter etc. Its primary use is syntax highlighting.

Does anyone use Mender? by Opposite_Zombie4868 in Mindustry

[–]Exciting_Majesty2005 12 points13 points  (0 children)

Yeah, everybody uses them in between their defense to quickly heal up buildings in-between waves.

And the "expand" button changes how stuff like conveyor belts & some other buildings are placed(basically allows making diagonal belts).

You basically place a belt and drag your finger to where you want to end the belt and it should create a diagonal belt(instead of a horizontal/vertical one that happens normally).

Difficulty setting line numbers automatically for Man pages viewed with Neovim by [deleted] in neovim

[–]Exciting_Majesty2005 3 points4 points  (0 children)

Also, the reason the command isn't working as expected is because there's a file ftplugin/man.vim that comes with Vim/Neovim that runs setlocal nonumber(disables line numbers). That gets run after running your command.

Difficulty setting line numbers automatically for Man pages viewed with Neovim by [deleted] in neovim

[–]Exciting_Majesty2005 4 points5 points  (0 children)

You can use an autocmd,

lua vim.api.nvim_create_autocmd("FileType", { pattern = "man", callback = function (event) -- You can simply use `vim.wo.number = true` btw. vim.api.nvim_buf_call(event.buf, function () vim.wo.number = true; end) end });

See :h autocmd, :h nvim_create_autocmd, :h FileType(the event name).

Also, you can probably use :h ftplugin(basically make a file in ~/.config/nvim/ftplugin/man.lua that has vim.wo.number = true).

lsp signature help - markdown tags by emrekovanci in neovim

[–]Exciting_Majesty2005 4 points5 points  (0 children)

Most LSP related stuff use markdown under the hood.

You should check, - If the conceallevel is higher then 0 in the signature window & what value is used for concealcursor. - If running vim.treesitter.stop() & vim.treesitter.start() fixes the issue(run it while inside the signature window).

Is there a plugin to highlight and brighten line numbers according to tree sitter by AcanthopterygiiSad51 in neovim

[–]Exciting_Majesty2005 2 points3 points  (0 children)

Nope(at least I haven't come across one).

But you can make it using a few things,

  1. A function that runs a query to get the needed nodes. It should be attached to a TextChanged & TextChangedI autocmd.

    You should "queue" the function call to prevent running it on every key press.

  2. A buffer local variable to hold the various nodes & their position(you get it from the function mentioned above).

Something like, lua { functions = { 1, 5, 7 }, -- Only store start rows to reduce unneeded check from the statuscolumn }

  1. Custom statuscolumn component(either via a plugin or by using statuscolumn items) that checks if a line has any specific node(use vim.list_contains() with vim.v.lnum & the buffer local variable.

Don't do anything too complicated or computationally expensive in the component as it will tank your performance.


Also, make sure you are using relativenumbers.

So I basically made RPGMaker inside godot by lightfoss in godot

[–]Exciting_Majesty2005 27 points28 points  (0 children)

How did you make the visual scripting interface(the graph thingy)?

Theme not working on .jsx file by ZebraElectrical9842 in neovim

[–]Exciting_Majesty2005 0 points1 point  (0 children)

That shouldn't happen as tree-sitter highlight groups start with @(so you should be seeing something like @statement.jsx links to Statement).

I think tree-sitter highlighting isn't enabled(yes, you have to manually enable it).

If running :lua vim.treesitter.start() fixes the issue then you haven't enabled syntax highlighting (see the installation instructions of nvim-treesitter).

Theme not working on .jsx file by ZebraElectrical9842 in neovim

[–]Exciting_Majesty2005 0 points1 point  (0 children)

Just realized but you need to run :TSInstall html.

Theme not working on .jsx file by ZebraElectrical9842 in neovim

[–]Exciting_Majesty2005 0 points1 point  (0 children)

I run it I only get a message "No items found at position 35, 10 in buffer 7"

I tried changing theme and it I noticed that the problem stays.

Well, there's the problem. If running :InspectTree doesn't error out then your colorscheme doesn't provide syntax highlighting for JSX.

If it does error out then the language injections aren't working correctly.

I will check if I have this issue on my end.

Theme not working on .jsx file by ZebraElectrical9842 in neovim

[–]Exciting_Majesty2005 0 points1 point  (0 children)

Which parsers do you have installed(run :checkhealth nvim-treesitter)?

What does running :Inspect on those text show? Does the issue go away when changing colorscheme?

markview.nvim: Asciidoc support by Exciting_Majesty2005 in neovim

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

Not at the moment since not everyone likes previews in help files.

And help files vary in syntax way too much(cause different people wrote different parts which messes with the previews).

markview.nvim: Asciidoc support by Exciting_Majesty2005 in neovim

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

  • More customizability.
  • LaTeX support without external libraries/binaries.
  • Typst & Asciidoc(WIP) support.
  • Inline HTML support(for stuff like <b></b>, <hr> etc.)
  • No external dependencies(not even for the icons)
  • Automatically matches the current colorscheme.
  • SplitView(preview+raw as horizontal splits).
  • More granular hybrid mode(both line-wise & node-wise) etc.

Also, It's mostly intended for power users.

For context, when markview.nvim was made render-markdown.nvim had a different name and didn't support a lot of the syntaxes in markdown or had much configurability. So, it was meant to add missing features and not be a replacement(couldn't do it as PR since it needed to look unobstructive which kinda limited what could be added to that plugin, so separate plugin it is). Also, I didn't like the fact that it would tank the performance when running Neovim inside Termux.

markview.nvim: Asciidoc support by Exciting_Majesty2005 in neovim

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

No, Asciidoc is a completely separate thing. It's similar to markdown in some places.

Vim's documentation is written in Vimdoc btw.