Neovim

2549 readers
1 users here now

founded 2 years ago
MODERATORS
126
 
 

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
127
 
 

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

128
129
130
 
 

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

131
 
 

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
132
 
 

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!

133
 
 

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.

134
135
 
 

๐Ÿ‘‹ 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
136
 
 

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.

137
 
 

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.

138
139
 
 

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

140
141
142
 
 

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?

143
116
submitted 2 years ago* (last edited 2 years ago) by ck_@discuss.tchncs.de to c/neovim@programming.dev
144
145
 
 

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?

146
4
submitted 2 years ago* (last edited 2 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.

147
 
 

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

148
10
submitted 2 years ago* (last edited 2 years ago) by vhl@programming.dev to c/neovim@programming.dev
 
 

Answer

Hi, I am somewhat a noob when it comes to lua-script, so excuse me if this question is trivial. I want to change this line:

let g:slime_default_config = {"socket_name": "default", "target_pane": "{last}"}

to lua, but I don't know how. I have checked the learn-to-write-nvim-config-in-lua github, it was totally over my head. Can someone help me? Thank you!! ๐Ÿ˜‡

149
7
How I manage snippets (howarddo2208.github.io)
submitted 2 years ago* (last edited 2 years ago) by howarddo@programming.dev to c/neovim@programming.dev
 
 

Hi guys, it's my new blog post on managing snippets with a TUI program called Nap. I know it not addressing Neovim specifically, but writing code in the terminal in general, and I'm requesting Tmux community btw. Hope you find the blog useful.

150
view more: โ€น prev next โ€บ