Neovim

2711 readers
1 users here now

founded 2 years ago
MODERATORS
151
 
 

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?

152
 
 

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
153
 
 

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

154
 
 

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
155
 
 

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!

156
 
 

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

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.

158
 
 

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.

159
160
 
 

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

161
162
163
 
 

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?

164
165
 
 

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?

166
1
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!! ๐Ÿ˜‡

167
1
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.

168
 
 

I have a neovim with lots of plugins, and macros are broken. After I record them and I try to run them they stop in the middle, and won't replay every action I did.

My guess is that some plugin is breaking it, I noticed that autocompletition is usually not working, so I avoid it. My question is how can I find any other plugins that break it, and fix it?

169
 
 

170
 
 

Is there a simple script or plugin that uses patterns to get the root project directory path of a rust project in lua? The pattern should be to vheck for 'Cargo.lock' file

171
 
 

Zenith said:

URL: https://github.com/Zeioth/compiler.nvim

This compiler detects the filetype you are using. From there it detects the entry point of your program and compiles it with the correct compiler so you don't need to setup anything.

Currently it is on beta state and only works with c. More languages available in the coming days.

I rather releasing it now in case someone wants to participate and leave comments before I solidify the architecture.

I coded this for NormalNvim so take a look there if you want too.

Cheers.

172
173
 
 

๐Ÿ˜ป

174
175
1
submitted 2 years ago* (last edited 2 years ago) by lung@lemmy.world to c/neovim@programming.dev
 
 

Hey guys, I'm currently one of the active members the neovim reddit (hugelung), and I'm in full support of migrating to lemmy. I was hoping to be modded here, and helping migrate content / roll people over

view more: โ€น prev next โ€บ