Cool small modules with lua
(Discussion)
Can you guys show, some cool functions or lua modules you have created, which you use regularly/ semi-regularly . Not full on plugin level, but maybe some utility functions.
https://redd.it/1oibqb4
@r_neovim
  
  (Discussion)
Can you guys show, some cool functions or lua modules you have created, which you use regularly/ semi-regularly . Not full on plugin level, but maybe some utility functions.
https://redd.it/1oibqb4
@r_neovim
Reddit
  
  From the neovim community on Reddit
  Explore this post and more from the neovim community
  Tired of using arrow keys after every ) or } — how do you handle auto-pairs in Neovim?
(Discussion)
Whenever I’m typing functions or expressions, my setup automatically inserts the matching pair (like
The issue is that I often have to manually move past the closing character using an arrow key or
I’ve tried using
What’s your workflow or preferred keybinding to “escape” paired characters efficiently?
Do you rely on a plugin (like
https://redd.it/1ohzz07
@r_neovim
  
  (Discussion)
Whenever I’m typing functions or expressions, my setup automatically inserts the matching pair (like
(), [], {}, "", or ''), placing the cursor between them.The issue is that I often have to manually move past the closing character using an arrow key or
<Right>, which feels inefficient when writing fast.I’ve tried using
<S-a> to jump to the end of the line, but that obviously doesn’t work in all situations (e.g. nested structures or multiline statements).What’s your workflow or preferred keybinding to “escape” paired characters efficiently?
Do you rely on a plugin (like
nvim-autopairs, mini.pairs, or something else), or do you have a custom mapping for this?https://redd.it/1ohzz07
@r_neovim
Reddit
  
  From the neovim community on Reddit
  Explore this post and more from the neovim community
  Harpoon/Grapple for arglist
(Plugin)
So, I read this post.
https://www.reddit.com/r/neovim/comments/1og2pg9/mom\can\i\have\harpoon\we\have\harpoon\at\_home/
I got nerdsniped. Here is a plugin. Its about 350-400 lines and 1 file. It is very new, like, made yesterday new.
https://github.com/BirdeeHub/argmark
It might get a few more functions, although IDK what else I would add that isn't already an nvim function, maybe I will think of one though. It will stay very minimal though regardless. It might get a few display options for the edit window maybe. I don't have any further plans for it now in particular. But it works, I like it, figured I'd make a post. I don't have a reason I can think of to break the things I already added (mostly because there isn't much plugin there to change), so it should be useable already, changes won't be breaking, it will just get a couple more options and maybe an extra function
Basically I wanted a harpoon but session local so I can add stuff however and its gone next time I open it unless I save the session.
This has the grapple/harpoon editable buffer window, and you can cycle which list you are editing.
the cycle between lists part is more challenging than it sounded... There might not be any window using global, and the commands don't let you explicitly target a list...
It comes with a simple component for lualine or other analogous plugin/config (function that returns a string)
I still use grapple.nvim but I use that for a longer lived bookmark shortlist in a codebase
Whereas this, I just add stuff to it if I might want to come back to it and don't have to think about deleting it (although you can still save and resume the session, and they will come with)
https://redd.it/1oikemy
@r_neovim
  
  (Plugin)
So, I read this post.
https://www.reddit.com/r/neovim/comments/1og2pg9/mom\can\i\have\harpoon\we\have\harpoon\at\_home/
I got nerdsniped. Here is a plugin. Its about 350-400 lines and 1 file. It is very new, like, made yesterday new.
https://github.com/BirdeeHub/argmark
It might get a few more functions, although IDK what else I would add that isn't already an nvim function, maybe I will think of one though. It will stay very minimal though regardless. It might get a few display options for the edit window maybe. I don't have any further plans for it now in particular. But it works, I like it, figured I'd make a post. I don't have a reason I can think of to break the things I already added (mostly because there isn't much plugin there to change), so it should be useable already, changes won't be breaking, it will just get a couple more options and maybe an extra function
Basically I wanted a harpoon but session local so I can add stuff however and its gone next time I open it unless I save the session.
This has the grapple/harpoon editable buffer window, and you can cycle which list you are editing.
the cycle between lists part is more challenging than it sounded... There might not be any window using global, and the commands don't let you explicitly target a list...
It comes with a simple component for lualine or other analogous plugin/config (function that returns a string)
I still use grapple.nvim but I use that for a longer lived bookmark shortlist in a codebase
Whereas this, I just add stuff to it if I might want to come back to it and don't have to think about deleting it (although you can still save and resume the session, and they will come with)
https://redd.it/1oikemy
@r_neovim
Reddit
  
  From the neovim community on Reddit: Mom, can I have harpoon? We have harpoon at home
  Explore this post and more from the neovim community
  I Read the Entire Neovim User Manual
https://youtu.be/1qgb8gbk9eo
(Video)
https://redd.it/1oibxnp
@r_neovim
  
  https://youtu.be/1qgb8gbk9eo
(Video)
https://redd.it/1oibxnp
@r_neovim
YouTube
  
  I Read the Entire Neovim User Manual (11+ Hours)
  In this video, I read the entire Vim User Manual. This is a completely original idea* and has never been done before, of course.
*@teej_dv
🔎 Resources
› Written articles: https://github.com/bcionescu/guides
📺 Playlists
› Consoom Vim: https://www.yout…
  *@teej_dv
🔎 Resources
› Written articles: https://github.com/bcionescu/guides
📺 Playlists
› Consoom Vim: https://www.yout…
Switching Keyboard Layouts
(Discussion)
I have a neovim and terminal based workflow that is very customized and I have been adjusting and adding to it for years. I have a moonlander and I'm considering trying out a different keyboard layout like Dvorak or Colemak. My biggest hesitation, is all of the keybindings and keymaps for my workflow. Has anyone else dealt with this? Do you just make a bunch of changes to your dotfiles? Even things like hjkl to navigate would need to be changed. Thanks for any advice!
https://redd.it/1oiblbu
@r_neovim
  
  (Discussion)
I have a neovim and terminal based workflow that is very customized and I have been adjusting and adding to it for years. I have a moonlander and I'm considering trying out a different keyboard layout like Dvorak or Colemak. My biggest hesitation, is all of the keybindings and keymaps for my workflow. Has anyone else dealt with this? Do you just make a bunch of changes to your dotfiles? Even things like hjkl to navigate would need to be changed. Thanks for any advice!
https://redd.it/1oiblbu
@r_neovim
Reddit
  
  From the neovim community on Reddit
  Explore this post and more from the neovim community
  Lux update: GitHub Action for tests, type checks, uploads, ...
(Random)
Hey everyone,
It's been about 2 months since our last update.
Since then, we've been hard at work.
I've just completed work on the official Lux GitHub action and published it to the marketplace.
It installs Lux on GitHub Actions runners, so you can easily:
- Run tests with
- Run type checks with
- Upload your packages with
...and anything else you can do with lux-cli!
Lux will take care of installing Lua (if needed) and dependencies (like
We've also added a chapter on how to set things up to our tutorial.
P.S. For those of you who don't want to use GitHub:
We definitely plan on supporting other CI platforms. In the meantime, you can use Nix or an AUR helper to install Lux.
- Cheers!
https://redd.it/1ojink5
@r_neovim
  
  (Random)
Hey everyone,
It's been about 2 months since our last update.
Since then, we've been hard at work.
I've just completed work on the official Lux GitHub action and published it to the marketplace.
It installs Lux on GitHub Actions runners, so you can easily:
- Run tests with
lx test- Run type checks with
lx check- Upload your packages with
lx upload...and anything else you can do with lux-cli!
Lux will take care of installing Lua (if needed) and dependencies (like
busted) for you, so you can easily run tests in a matrix with multiple Neovim or Lua versions and multiple platforms/architectures.We've also added a chapter on how to set things up to our tutorial.
P.S. For those of you who don't want to use GitHub:
We definitely plan on supporting other CI platforms. In the meantime, you can use Nix or an AUR helper to install Lux.
- Cheers!
https://redd.it/1ojink5
@r_neovim
Reddit
  
  From the neovim community on Reddit: We're now called Lumen Labs!
  Explore this post and more from the neovim community
  Theming neovim to match terminal and wallpaper colors.
(Need Help)
Im currently using Matugen in order to generate colors out of my wallpaper for a number of application (including the colors for my terminal, alacritty). Now, I also want to make neovim sync its colors to match that of my wallpaper and terminal, but the Matugen docs do not mention and ive failed to make anything that looks as good as other people have. Can anybody share how I can do this?
https://redd.it/1oj2lo6
@r_neovim
  
  (Need Help)
Im currently using Matugen in order to generate colors out of my wallpaper for a number of application (including the colors for my terminal, alacritty). Now, I also want to make neovim sync its colors to match that of my wallpaper and terminal, but the Matugen docs do not mention and ive failed to make anything that looks as good as other people have. Can anybody share how I can do this?
https://redd.it/1oj2lo6
@r_neovim
GitHub
  
  GitHub - InioX/matugen: A material you color generation tool
  A material you color generation tool. Contribute to InioX/matugen development by creating an account on GitHub.
  Irises - colour scheme
(Color Scheme)
https://github.com/maccoda/irises.nvim
I really liked Van Gogh's irises painting so I thought I would have a go at turning it into a colour scheme.
https://redd.it/1ojs41h
@r_neovim
  
  (Color Scheme)
https://github.com/maccoda/irises.nvim
I really liked Van Gogh's irises painting so I thought I would have a go at turning it into a colour scheme.
https://redd.it/1ojs41h
@r_neovim
GitHub
  
  GitHub - maccoda/irises.nvim: A soft earthy neovim theme
  A soft earthy neovim theme. Contribute to maccoda/irises.nvim development by creating an account on GitHub.
  Displaying and navigating Javadocs in Neovim
(Need Help)
Is there a good solution to show and navigate Javadocs in Neovim? Whenever I call
Also, is it normal behavior for Neovim to still count concealed lines/columns during navigation? I set
https://redd.it/1ojfbge
@r_neovim
  
  (Need Help)
Is there a good solution to show and navigate Javadocs in Neovim? Whenever I call
vim.lsp.buf.hover it shows a Javadoc buffer with lots of wraps due to long jdt:// links. I managed to conceal these URLs and open the new buffer as a bottom window instead of a hover by overwriting vim.lsp.buf.hover, but it's still not perfect (some extra empty lines here and there) and I don't know how to navigate JDT links.Also, is it normal behavior for Neovim to still count concealed lines/columns during navigation? I set
conceallevel = 3 but if I conceal multiple lines the cursor counts them when navigating over them with j and k. Is there a way to really conceal them without a trace of their existence?https://redd.it/1ojfbge
@r_neovim
Reddit
  
  From the neovim community on Reddit: Displaying and navigating Javadocs in Neovim
  Explore this post and more from the neovim community
  Tips for productivity
(Discussion)
What are your Vim productivity tips?
Please some useful tips and plugins that make you more productive during development.
one thing that i use
inoremap jk <Esc>
https://redd.it/1ojv2gx
@r_neovim
  
  (Discussion)
What are your Vim productivity tips?
Please some useful tips and plugins that make you more productive during development.
one thing that i use
inoremap jk <Esc>
https://redd.it/1ojv2gx
@r_neovim
Reddit
  
  From the neovim community on Reddit
  Explore this post and more from the neovim community
  remap yank/paste keys saves me a lot
(Tips and Tricks)
In Vim or Neovim, when you paste over a selection in visual mode, Vim normally copies (puts) the replaced text into the default register (
  
So, I remapped the 'y' and 'p' keys in visual mode,
  
vim.keymap.set("v", "y", "\\"vy", { desc = "yanking into register v"})
vim.keymap.set("v", "p", "\\"vp", { desc = "pasting from register v"}).
UPDATE: in visual mode, ‘P’ indeed what I need. See help
https://redd.it/1ojnkpg
@r_neovim
  
  (Tips and Tricks)
In Vim or Neovim, when you paste over a selection in visual mode, Vim normally copies (puts) the replaced text into the default register (
"). That’s why after pasting, your previously yanked text is gone.So, I remapped the 'y' and 'p' keys in visual mode,
vim.keymap.set("v", "y", "\\"vy", { desc = "yanking into register v"})
vim.keymap.set("v", "p", "\\"vp", { desc = "pasting from register v"}).
UPDATE: in visual mode, ‘P’ indeed what I need. See help
:h v_Phttps://redd.it/1ojnkpg
@r_neovim
Reddit
  
  From the neovim community on Reddit
  Explore this post and more from the neovim community
  Tinymist does not export the pdf
(Need Help)
I am using neovim 0.12 and have this configured for tinymist as lsp:
Do you have an idea why its not exporting the pdf on save?
https://redd.it/1oj5nrn
@r_neovim
  
  (Need Help)
I am using neovim 0.12 and have this configured for tinymist as lsp:
vim.lsp.config('tinymist', {
    cmd = { 'tinymist' },
    filetypes = { 'typst' },
    settings = {
      formatterMode = 'typstyle',
      formatterIndentSize = 2,
      exportPdf = 'onSave',
      exportTarget = 'paged',
      lint = {
        enabled = true,
        when = 'onType',
      },
      outputPath = '$dir/$name',
    },
  })Do you have an idea why its not exporting the pdf on save?
https://redd.it/1oj5nrn
@r_neovim
Reddit
  
  From the neovim community on Reddit
  Explore this post and more from the neovim community
  