201
16
nlua - neovim as lua interpreter (social.fussenegger.pro)

nlua - neovim as lua interpreter

https://github.com/mfussenegger/nlua

I had previously written about how to create a script that uses neovim and emulates the lua interpreter cli - now I finally got around to extract it into a dedicated project, with some instructions on how to use it with luarocks.

#neovim @neovim

202
16
submitted 2 years ago* (last edited 2 years ago) by nvimmike@programming.dev to c/neovim@programming.dev

kitty-scrollback.nvim has officially released v2.0.0!

What is kitty-scrollback.nvim?

kitty-scrollback.nvim

A Neovim plugin (and Kitty Kitten) that allows you to navigate your Kitty scrollback buffer to quickly search, copy, and execute commands in Neovim.

Migrating to v2.0.0

See Migrating to v2.0.0 for the detailed migration guide.

What changed?

  • The --config-file option has been removed. Custom configurations are now supplied in the setup() function instead of separate config file. The config name corresponds to the key of the table provided to setup().
  • The default mapping keys changed from ctrl+shift to kitty_mod
  • 36 demos added to the Wiki Advanced-Configuration to exercise the different configuration options of kitty-scrollback.nvim. Here are a few.

ksb_example_status_win_autoclose ksb_example_status_win_autoclose

ksb_example_status_win_show_timer ksb_example_status_win_show_timer

ksb_example_highlight_overrides ksb_example_highlight_overrides

ksb_example_paste_win_winopts ksb_example_paste_win_winopts

ksb_example_nvim_args_tokyonight ksb_example_nvim_args_tokyonight

ksb_example_nvim_args_cellular_automation ksb_example_nvim_args_cellular_automation

If you have any questions, comments, or feedback feel free to let me know here or create an issue.

Breaking Changes ๐Ÿ˜ฟ Sorry breaking-changes-cat

203
5
Weird behavior of +: (programming.dev)

I recently started a fresh configuration using kickstart.nvim.

I noticed that sometimes when I writing python files when I press space (which is my key) followed by : the line indentation increase. It doesn't seem to happen on text files. I didn't find any configuration which maps this behavior

Any idea why this happens? How to disable this?

204
13

Like a TUI version of stuff like in the picture?

Basically a settings dialog with:

  • all nvim options (in sections)
  • a plugin section with
  • installed plugins
    • toggle
    • configuration options
  • available plugins
205
9

As much as neovim seems nice, I can't seem to find many resources to actually help start configuring neovim as a beginner. Help is very sparse, and the easiest thing seems to get a premade config, but then there are just too many features, and complexity gets in the way of understanding what's going on

206
10
207
5
208
35

cross-posted from: https://discuss.tchncs.de/post/3813494

Floating LSP windows now use Treesitter highlighting, VimConf 2023, better template strings, inline LSP references, Kitty integration, and Neovim config for Python development

209
10

cross-posted from: https://programming.dev/post/3449167

I am new lemmy user and I wanted to whether there are different nvim communities or same ones like,

  1. https://lemmy.world/c/neovim@sopuli.xyz
  2. https://programming.dev/c/neovim
210
28
submitted 3 years ago* (last edited 3 years ago) by onlinepersona@programming.dev to c/neovim@programming.dev

I thought switching from vim to neovim would be like switching from a nano+ to a VSCode CLI, but it's far from that. There are so many plugins and it's not as easy as declaring which plugins I want, having one dictionary/mapping/attribute set with keybindings, another with global preferences, and done.

Then there's something about language servers. The list on https://github.com/rockerBOO/awesome-neovim is daunting. I thought LSP support was built into nvim. Why are there so many LSP plugins? And what the hell is treesitter and why do I need it?

I copied some dude's config and suddenly Ctrl+P for completion didn't work like in VIM.

There's just so much unexplained jargon and abbreviations, that it feels like I have to read neovim code before even using it (ain't nobody got time for that). Is neovim actually the right tool to use to have an easy CLI IDE? Is there an easier command-line alternative that just lets me go "oh, this language isn't supported, let me open the package manager and install the $language-plugin", with "Goto Definition", debugging with breakpoints, code formatting, refactoring (rename variable/method/class, extract function, etc.) ? Maybe neovim just isn't the right tool for those without years of time.

Edit: Thanks for the suggestions everybody. Finally went with Lunarvim and it's been a joy!

211
6

The native Inlay Hints feature is enabled in the nightly version of Neovim. The feature will be part of the v0.10 release once it is available.

212
2
213
18
submitted 3 years ago* (last edited 3 years ago) by nvimmike@programming.dev to c/neovim@programming.dev

๐Ÿ‘‹ Hey all, first post on Lemmy.

I recently released v1.0.1 of kitty-scrollback.nvim. If you have any feedback, issues, or suggestions feel free to open an issue. I'm interested to get feedback if the setup easy or if there are any unclear/confusing steps. This requires Neovim nightly (v0.10) and Kitty v0.29.

kitty-scrollbakc.nvim

โœจ Features

  • ๐Ÿ˜ป Navigate Kitty's scrollback buffer with Neovim
  • ๐Ÿฑ Copy contents from Neovim to system clipboard
  • ๐Ÿ˜บ Send contents from Neovim to Kitty shell
  • ๐Ÿ™€ Execute shell command from Neovim to Kitty shell
214
6

I've had a problem making commits with fugitive for a long time, over a number of versions of Neovim. Has anyone seen this error before? I've searched a number of times but not found anything.

I use the cc binding in a fugitive window to open a split to write a commit message. Then I run :x to close the split and finish the commit. Most times - but not every time - I get this error message, the commit is not made, and the fugitive window becomes blank.

g`"                                                                                                                            
Error detected while processing BufEnter Autocommands for "fugitive://*//"..function 81_ReloadWinStatus[11]..81_Reloa
dStatusBuffer[6]..fugitive#BufReadStatus[364]..BufEnter Autocommands for "fugitive://*//"..function 81_ReloadWinStatus[11]
..81_ReloadStatusBuffer[6]..fugitive#BufReadStatus[292]..BufReadPost Autocommands for "*"..function fugitive#Resume[5]..<s>81_RunWait:                                                                                                                 
line   29:                                                                                                                     
E242: Can't split a window while closing another

I don't know what the deal is with the g`" line in messages. That might be a clue?

This does not happen when I make a commit without writing a message - for example when I use ce to amend the last commit without editing the commit message.

215
15

I just started to get into neovim today, and I decided to follow the first tutorial I came across (neovim from scratch) on youtube. The first thing that's done is to copy the repo into .config/nvim/. At startup nvim set up a bunch of stuff. is there anything that it sets up outside of the ./config/nvim file? Because I really dislike installing stuff on my computer that just stays even after deleting the installation folder.

216
19
217
7

Ad title, would be nice also if search field overlap the preview of the file to let me see long paths

218
34
219
25
220
8

im trying to get the pyright language server working, but when i add the snippet to my init.lua, i get the following error: E5513: Error while calling lua chunk module 'lspconfig' not found. Im doing something wrong?

221
119
submitted 3 years ago* (last edited 3 years ago) by ck_@discuss.tchncs.de to c/neovim@programming.dev
222
50
223
23

I'm thinking of switching from VSC to VIM because VSC is too heavy in term of ressources usage.

Currently, I use the VSC + VIM extension and I'm pretty happy.

But nowadays, I avoid to open some monorepo projects because it takes too much time and I use the Github explorer instead. Also, I use the mouse too much.

So I finally took the decision to give a try to Neovim.

I initially started with SpaceVIM and it was a good experience. But there is too much magic for me. Also, I have the feeling to not learn VIM.

So I setup CoC with VIM-plug + NerdTree. It looks promising.

Do you have any tips for me?

224
4
submitted 3 years ago* (last edited 3 years ago) by Reza@programming.dev to c/neovim@programming.dev

I use coc-pyright as python code completer in debian. When I work on a django file, I get errors like this error in neovim env. But django runs codes without any problem. I have installed django with apt and not with pip and also I am not in a venv.

225
16
submitted 3 years ago* (last edited 3 years ago) by ashwinvis@mastodon.acc.sunet.se to c/neovim@programming.dev

I like mixing the keyboard and mouse. Yes I know

set mouse=a

exists, but it provides only some basic actions. I was wondering if you could map the mouse to allow moving split window panes around - something which is painful to do by keyboard. Do you know of something like this?

#vim #neovim

@vim @neovim

view more: โ€น prev next โ€บ

Neovim

2935 readers
2 users here now

founded 3 years ago
MODERATORS