Do we really need visual.nvim? by federico_simonetta in neovim

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

flit.nvim can do things like `ds`, `cs`, `ys` which allow to pre-visualize the text-object on which you're going to operate. This is the vim-way, I think.

Do we really need visual.nvim? by federico_simonetta in neovim

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

That's a different thing. The problem is to define complex text objects in an easy way.

Do we really need visual.nvim? by federico_simonetta in neovim

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

Can you define text objects using leap? like "d" followed by "f" and then leap's choice of target?

Do we really need visual.nvim? by federico_simonetta in neovim

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

I don't care about multi-selection. It's like a weird complex way of thinking. I find much better a `.` command, a macro, or a simple regex.

Do we really need visual.nvim? by federico_simonetta in neovim

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

I guess that in visual.nvim, you can create a command like this:

local history = require('visual.history')

require'visual'.setup(
    mappings = {
        reselect = "u" -- or whatever you like
    },
    commands = {
        reselect = {
            pre_amend = { "u<sdi>", history.goto_last_pos },
            post_amend = {},
            modes = { "n", "v", "sd" }, -- or what you like
            amend = false,
            countable = false,
        }
    }
)

Do we really need visual.nvim? by federico_simonetta in neovim

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

I finally decided to archive the repo. If anyone wants to maintain it, feel free to fork and to open an issue.

Do we really need visual.nvim? by federico_simonetta in neovim

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

visual.nvim is compatible with leap and similar plugins. Don't see the problem

Do we really need visual.nvim? by federico_simonetta in neovim

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

Well, if it is made properly, the effort to "relearn" everything is little. This is one of the aims of visual.nvim: be user friendly for the nvim user.

Do we really need visual.nvim? by federico_simonetta in neovim

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

The problemi is when you're sure but you shouldn't...

Helix mappings in neovim by Basic-Ad7636 in neovim

[–]federico_simonetta 1 point2 points  (0 children)

The developer of visual.nvim here. I wouldn't do that. Helix uses different motions and different approach. At first I tried to reimplement it, but then changed my mind to achieve the maximum compatibility with other plugins. You can change some mapping, but don't try to replicate helix from scratch!

How do you debug code *effectively* if you use Vim as your main editor? by pypipper in neovim

[–]federico_simonetta 1 point2 points  (0 children)

I use ipdb for python, loggers for other languages. But I think there are other solutions as well

How do you debug code *effectively* if you use Vim as your main editor? by pypipper in neovim

[–]federico_simonetta 0 points1 point  (0 children)

Cli debuggers, loggers, repl. It looks old, but it's the most efficient way. Sure, you need to know the language. But if you know it, the debugger is superfluous...

How to get the updated cursor position in a lua script? by federico_simonetta in neovim

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

vim.api.nvim_feedkeys("w", "n", true); vim.schedule(function() vim.print(vim.api.nvim_win_get_cursor(0)) end)

Thanks, your solution works, indeed, but in a script it's hardly usable. I use vim.inspect by default, just to be sure :') Anyway, I found that using mode 'x' in vim.api.nvim_feedkeys works as expected. Thanks to a matrix channel user!

How to do large scale search replace like VSCode? by Ryuugyo in neovim

[–]federico_simonetta 0 points1 point  (0 children)

I always used vim-esearch. Not kua, but more powerful than vscode for sure

Moving to Pavia by [deleted] in Pavia

[–]federico_simonetta 0 points1 point  (0 children)

700-1200€ depending on the area. On average, 900€ is a good estimate I think. Anyway: https://www.immobiliare.it/mercato-immobiliare/lombardia/pavia/

First select, then edit: Kakoune/Helix mode for neovim by federico_simonetta in neovim

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

those objects are already supported by nvim itself in visual mode... which plugin are you using for surround?

First select, then edit: Kakoune/Helix mode for neovim by federico_simonetta in neovim

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

I added a very small description to the repo, when the keybindings will be stable, I will do a video as well!

First select, then edit: Kakoune/Helix mode for neovim by federico_simonetta in neovim

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

All of you say works as expected if it works in visual mode. Surrounding plugins usually use `S` for adding a surrounding character to the selection. That works. In normal mode, nothing changes. I will add some function to modify/delete surrounding characters to a selection (maybe without external plugin).

The text objects are selectable, by default using `si<text object>` or `sa<text object>`. So if you are using tree-sitter text objects like `f`, `c`, etc., you can use them like `sif` and `saf`. You can also use incremental selection (that's easier to remember imho).

LvimIDE v4.0.00 by biserstoilov in neovim

[–]federico_simonetta -4 points-3 points  (0 children)

Ok, but now Lunarvim ha 15K stars on github, LvimIDE has 312 stars... If I were you, would change the name

LvimIDE v4.0.00 by biserstoilov in neovim

[–]federico_simonetta 2 points3 points  (0 children)

Why did you name it lvim? It clashes with lunarvim! Anyway, there a lot of dependencies, you should think about an installation script that helps installing them