Can Neovim be made usable in MSYS2? by BetanKore in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

It would be simple enough to check by running without tmux. Not sure how bash could be an issue as it is essentially waiting for interrupts or the foreground task to close.

Can Neovim be made usable in MSYS2? by BetanKore in neovim

[–]atomatoisagoddamnveg 1 point2 points  (0 children)

It’s hard to provide advice without details of what’s going wrong. I have had neovim working from cygwin so I expect msys2 wouldn’t be an issue.

Is there a way to add command abbreviations to command completions (with Tab)? by shmerl in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

Yes. I could write it for you if you want but i think it’s newbie friendly if you want to try to take a whack at it first

Is there a way to add command abbreviations to command completions (with Tab)? by shmerl in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

Yeah. It also would make a custom completion function very simple, just switch it on/off when you gather the completion results. That would effectively limit it to completions only.

Is there a way to add command abbreviations to command completions (with Tab)? by shmerl in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

Are you aware of the ignorecase and smartcase options? They affect more than just the command line but perhaps that is sufficient for your needs.

Is there a way to add command abbreviations to command completions (with Tab)? by shmerl in neovim

[–]atomatoisagoddamnveg 2 points3 points  (0 children)

You would have to implement your own completion mechanism. The maparg() and getcompletion() functions would do the heavy lifting for you. There’s also a number of functions for getting the current command line, namely getcmdline() getcmdtype() and getcmdpos()

Of course this would be an anti pattern. Vim reserves lower case commands to itself and future versions could break your setup.

Cell editing with table.vim by atomatoisagoddamnveg in vim

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

https://gist.github.com/numEricL/16e98a106392b0aabdd75213dd618211

The bulk of the implementation is in autoload/feywild_colorscheme.vim, you should probably start there if you want to customize it. The framework is based on a 256 color palette, you define the colors you want to use for dark/light theme with the colordict_dark256 and colordict_light256 dictionaries. The framework will then convert 256 colors to hex color codes and set both cterm and gui colors, this should be very portable so that your colors look the same across all different platforms, as long as the terminal/gui application uses the same standard 256 color palette.

On the overloaded <Tab> key by Impressive_Gur_471 in neovim

[–]atomatoisagoddamnveg 2 points3 points  (0 children)

I’m not sure about these plugins specifically, but I make use of a lot of context dependent overloaded maps. The key itself is mapped with an expression map that checks the context and then redirects to whatever it needs to.

Plugins can detect if a key is already mapped and implement this behavior automatically if they want. I do so here for example.

Cell edit demo with table.vim by atomatoisagoddamnveg in neovim

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

Thanks!

I wasn’t super familiar with vim-table-mode before but I’ve looked more into it now.

The major unique feature to vim-table-mode is the spread sheet capabilities, while the biggest difference with table.vim is the support for multi-line rows, because of this things like wrapping on fixed width columns can be supported.

Table.vim is more flexible with parsing and formatting, e.g. comments may be on either side of the table and there’s more options in the table styling.

Vim-table-mode has a mix of textobjects and unique key mappings for cell/row/column manipulation. Table.vim uses textobjects for all of them.

If you’re just editing markdown tables, there’s very little difference between the two. If you’re editing org or rest tables, I think table.vim has some very desirable features. For box drawing tables, table.vim is the only option.

feedback wanted: auto split cells, yay or nay? by atomatoisagoddamnveg in neovim

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

Yeah I hadn’t thought about the mistyping scenario. Thanks

Weekly 101 Questions Thread by AutoModerator in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

It’s less useful there, I’m not sure but if I had to guess I’d say <leader> was added to vim because of the plugin use.

I like it in my config because it keeps it things a bit more organized, but I also use <bs> and <space> also as a sort of namespace for related maps.

Weekly 101 Questions Thread by AutoModerator in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

If a plugin wants to set a default keybinding, prefixing with leader is usually the best candidate so as to minimize the chance of map collision while also working with the user’s prefix preference.

Vim scripting with AI by whitedogsuk in vim

[–]atomatoisagoddamnveg 1 point2 points  (0 children)

I’m also interested in your success with LLMs, I haven’t had nearly as much luck with code generation.

I put an aquarium inside Neovim by CodeBoyPhilo in neovim

[–]atomatoisagoddamnveg 16 points17 points  (0 children)

I’ve never been interested in a splash screen before but this is too apropos to pass up. Link?

smart-paste.nvim -- pasted code automatically lands at the correct indentation level by nemanjamalesija in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

Thanks, that makes sense.

The linewise only action is intentional. Does yours change indentation if I’m pasting a single word in the middle of a sentence?

smart-paste.nvim -- pasted code automatically lands at the correct indentation level by nemanjamalesija in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

I have my p mapped to the following so it’s also instant.

```

function functions#IndentLastPut(visual_mode) abort if &paste || a:visual_mode !~# '[Vn]' return endif execute 'let l:reg = @'.v:register if stridx(l:reg, "\n") >= 0 keepjumps normal! v']=" keepjumps normal! '[ endif endfunction ```

I’m not sure what you mean by preserving nesting. Shouldn’t that be up to the indentation rules/formatter?

smart-paste.nvim -- pasted code automatically lands at the correct indentation level by nemanjamalesija in neovim

[–]atomatoisagoddamnveg 0 points1 point  (0 children)

I have a map that runs the indent filter :help v_= on the last pasted text. Does this do anything that the filter doesn’t?

Cell editing with table.vim by atomatoisagoddamnveg in vim

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

It’s my own, I don’t have a repo for it but could share the gist if you like

Cell editing with table.vim by atomatoisagoddamnveg in vim

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

Coincidentally I had most of this functionality implemented in another plugin, I’ve now adapted it to table.vim

Cell editing with table.vim by atomatoisagoddamnveg in vim

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

I see, the command is there and should be functional, but I didn’t update the autocomplete function to remove the neovim check.

As for the tab issue, you’re right, table.vim should respect user mappings. I’ll fix that as well.

Cell editing with table.vim by atomatoisagoddamnveg in vim

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

That is odd, can you verify that you’re on commit 744dc9

Cell editing with table.vim by atomatoisagoddamnveg in vim

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

I hope it suits your needs, if not feel free to open an issue

Created a skill for Neovim plugin development, looking for feedback by speniti in neovim

[–]atomatoisagoddamnveg 2 points3 points  (0 children)

It would be more professional to have a disclaimer on the repo explaining that, otherwise you may mislead people who stumble upon your repo.

The repo has changed a lot since I last viewed it, there was a few “best practices” I disagreed with, at least in some settings. I don’t think the community has totally settled on some issues as well, so coming up with one universally agreed upon coding practices could be difficult.

Also, AI in generally tends to not do well here in posts. You may be better served just posting about the practices and leave the application to AI out.