Any advice for a config and/or workflow that provides a smoother development experience with packer.nvim?

This page summarizes the projects mentioned and recommended in the original post on /r/neovim

WorkOS - The modern identity platform for B2B SaaS
The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
workos.com
featured
InfluxDB - Power Real-Time Data Analytics at Scale
Get real-time insights from all types of time series data with InfluxDB. Ingest, query, and analyze billions of data points in real-time with unbounded cardinality.
www.influxdata.com
featured
  • nvim-web-devicons

    lua `fork` of vim-web-devicons for neovim

  • However even with this approach, because of the above autocommand, whenever I change init.lua the file is re-sourced and PackerCompile is executed which means that if I screwed something up, session A will also break. Moreover, I'm currently having another issue where packer.nvim when I run PackerCompile for some reason moves all plugins that are in the packer field requires and moves them from packer's start to opt, even though they shouldn't be lazy loaded. Also, nvim-web-devicons' colors dissappear in the current session when I run PackerCompile and I'm not sure why.

  • plenary.nvim

    plenary: full; complete; entire; absolute; unqualified. All the lua functions I don't want to write twice.

  • Basically what I'm wondering is how others have configured packer.nvim to avoid Neovim breaking while configuring it? Is it possible to run PackerCompile on save without re-sourcing init.lua, and without it affecting the current Neovim session. And alternatively, have you gotten hot-reloading of your entire config to work so that your changes show up immediatly in session A and every plugin's config is re-required as if you had restarted Neovim, without the need for a session B? It looks like plenary.nvim's reload.lua can solve this, but I'm not sure how to use it properly.

  • WorkOS

    The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.

    WorkOS logo
  • nvim

    My Neovim configuration (by mawkler)

  • Link to my current config if anyone's curious.

  • nvim-reload

    Discontinued Plugin to easily reload your Neovim config

  • I haven't used reload.lua from plenary, so I don't have advice there. If you don't mind that it isn't maintained, I use this for reloading my config without restarting nvim and it has worked just fine: https://github.com/famiu/nvim-reload

NOTE: The number of mentions on this list indicates mentions on common posts plus user suggested alternatives. Hence, a higher number means a more popular project.

Suggest a related project

Related posts

  • Practical Vim Command Workflow

    5 projects | news.ycombinator.com | 28 Apr 2024
  • Why Neovim is My Text Editor of Choice

    2 projects | dev.to | 23 Apr 2024
  • How to override the colors of NeoSolarized in NeoVim

    3 projects | dev.to | 21 Apr 2024
  • Let's See Your Terminal

    2 projects | dev.to | 16 Apr 2024
  • Using a venv with Neovim's Python LSP

    2 projects | dev.to | 5 Apr 2024