Compare commits
2 Commits
main
...
prepend-to
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
7487a5d0a8 | ||
|
|
c9d87d1e3a |
@ -105,7 +105,7 @@ with lib;
|
||||
|
||||
# The final init.lua content that we pass to the Neovim wrapper.
|
||||
# It wraps the user init.lua, prepends the lua lib directory to the RTP
|
||||
# and appends the nvim and after directory to the RTP
|
||||
# and prepends the nvim and after directory to the RTP
|
||||
# It also adds logic for bootstrapping dev plugins (for plugin developers)
|
||||
initLua =
|
||||
''
|
||||
@ -134,10 +134,14 @@ with lib;
|
||||
'')
|
||||
devPlugins
|
||||
)
|
||||
# Append nvim and after directories to the runtimepath
|
||||
# Prepend nvim and after directories to the runtimepath
|
||||
# NOTE: This is done after init.lua,
|
||||
# because of a bug in Neovim that can cause filetype plugins
|
||||
# to be sourced prematurely, see https://github.com/neovim/neovim/issues/19008
|
||||
# We prepend to ensure that user ftplugins are sourced before builtin ftplugins.
|
||||
+ ''
|
||||
vim.opt.rtp:append('${nvimRtp}/nvim')
|
||||
vim.opt.rtp:append('${nvimRtp}/after')
|
||||
vim.opt.rtp:prepend('${nvimRtp}/nvim')
|
||||
vim.opt.rtp:prepend('${nvimRtp}/after')
|
||||
'';
|
||||
|
||||
# Add arguments to the Neovim wrapper script
|
||||
|
||||
@ -5,7 +5,7 @@ with final.pkgs.lib; let
|
||||
|
||||
# Use this to create a plugin from a flake input
|
||||
mkNvimPlugin = src: pname:
|
||||
pkgs.vimUtils.buildVimPlugin {
|
||||
pkgs.vimUtils.buildNeovimPlugin {
|
||||
inherit pname src;
|
||||
version = src.lastModifiedDate;
|
||||
};
|
||||
|
||||
Loading…
Reference in New Issue
Block a user