Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nixos/neovim: fix remote plugin manifest generation #191852

Merged

Conversation

liketechnik
Copy link
Member

Description of changes

Stops using ex mode when running neovim for remote plugin manifest generation, since that leads to errors in more recent neovim versions with various plugins.

Relevant discussion in and fix for #189804

Things done

Fix personally tested for vim-polyglot and with

currently used in my configuration
  • nvim-lspconfig
  • vim-automkdir
  • vim-vsnip
  • vim-vsnip-integ
  • nvim-cmp
  • cmp-nvim-lsp
  • cmp-buffer
  • cmp-path
  • cmp-calc
  • cmp-spell
  • cmp-emoji
  • cmp-treesitter
  • cmp-latex-symbols
  • cmp-omni
  • cmp-vsnip
  • vim-grammarous
  • vim-matchup
  • NeoSolarized
  • nerdtree
  • nerdtree-git-plugin
  • vim-commentary
  • camelcasemotion
  • vim-closetag
  • vim-polyglot
  • vim-surround
  • vim-indent-guides
  • gruvbox
  • vim-repeat
  • vim-airline
  • rainbow
  • vim-devicons
  • nvim-web-devicons
  • vim-shellcheck
  • editorconfig-vim
  • plantuml-syntax
  • nvim-treesitter
  • vim-gnupg
  • base16-vim
  • base16-vim-airline-themes
  • vim-ledger
  • plenary-nvim
  • telescope-nvim
  • telescope-fzf-native-nvim
  • gitsigns-nvim
  • neorg
  • trouble-nvim
  • friendly-snippets
  • Built on platform(s)
    • x86_64-linux
    • aarch64-linux
    • x86_64-darwin
    • aarch64-darwin
  • For non-Linux: Is sandbox = true set in nix.conf? (See Nix manual)
  • Tested, as applicable:
  • Tested compilation of all packages that depend on this change using nix-shell -p nixpkgs-review --run "nixpkgs-review rev HEAD". Note: all changes have to be committed, also see nixpkgs-review usage
  • Tested basic functionality of all binary files (usually in ./result/bin/)
  • 22.11 Release Notes (or backporting 22.05 Release notes)
    • (Package updates) Added a release notes entry if the change is major or breaking
    • (Module updates) Added a release notes entry if the change is significant
    • (Module addition) Added a release notes entry if adding a new NixOS module
    • (Release notes changes) Ran nixos/doc/manual/md-to-db.sh to update generated release notes
  • Fits CONTRIBUTING.md.

@polarmutex
Copy link
Contributor

Fix works in my neovim-flake

@teto
Copy link
Member

teto commented Sep 19, 2022

Have you a better explanation/the commit responsible for that ? -E doesnt look needed here but still it would be nice to understand. Isn't that a vim-polyglot change ?

Fix works in my neovim-flake

What does that mean ? nightly neovim ? neovim ?

@polarmutex
Copy link
Contributor

AutoCommands that have the vim special variable "afile" are the ones that are broken like vim-polyglot and neogit when generating the rplugin.vim

Afile is replace with the file name of the current buffer when running the autocommand so running it in ex mode there is nothing to replace it with.

The neovim commit that broke this (references in the issue) was a refactor in this area. I am not fully confident in my understanding of why this is happening now, but the commit looks right so I believe this needs fixed in nixpkgs.

So if the -E command option is not needed I think that is the best solution. This is not just a problem in one plugin but any plugin using afile in autocommands and the neovim conmit that broke it looks correct for neovim

@ribosomerocker
Copy link
Contributor

ribosomerocker commented Sep 20, 2022

what's blocking this merge? @teto @jonringer
it also seems to be fixing my issue.

Copy link
Contributor

@ribosomerocker ribosomerocker left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good from a bird's eye view.

@teto
Copy link
Member

teto commented Sep 21, 2022

could you try a rebase to fix the ofborg-eval job ?

Stops using ex mode when running neovim for remote plugin manifest
generation, since that leads to errors in more recent neovim versions
with various plugins.

closes NixOS#189804
@liketechnik
Copy link
Member Author

Done and seems like it did fix the eval job :)

@teto teto merged commit 86c51f6 into NixOS:master Sep 21, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants