Add vim-autoread

> Automatically causes vim to reload files which have been written on
disk but not modified in the buffer since the last write from vim. This
enables a file open in vim to be edited using another application and
saved. Upon returning to vim, as long as you haven't modified the file
since the last change, the file will be automatically updated to reflect
the changes made on disk, as though you had pressed :e manually.

https://github.com/djoshea/vim-autoread
This commit is contained in:
Oliver Davies 2024-06-21 02:35:00 +01:00
parent 0e82afca1b
commit e4e9727819
2 changed files with 11 additions and 0 deletions

View file

@ -72,6 +72,7 @@ rec {
vimPlugins.vim-nix vimPlugins.vim-nix
vimPlugins.vim-projectionist vimPlugins.vim-projectionist
vimPlugins.nvim-spectre vimPlugins.nvim-spectre
vimPlugins.vim-autoread
vimPlugins.vim-obsession vimPlugins.vim-obsession
vimPlugins.vim-pasta vimPlugins.vim-pasta
vimPlugins.vim-repeat vimPlugins.vim-repeat

View file

@ -10,6 +10,16 @@ final: prev: {
}; };
}; };
vim-autoread = final.vimUtils.buildVimPlugin {
name = "vim-autoread";
src = final.fetchFromGitHub {
owner = "djoshea";
repo = "vim-autoread";
rev = "24061f84652d768bfb85d222c88580b3af138dab";
sha256 = "fSADjNt1V9jgAPjxggbh7Nogcxyisi18KaVve8j+c3w=";
};
};
vim-textobj-xmlattr = final.vimUtils.buildVimPlugin { vim-textobj-xmlattr = final.vimUtils.buildVimPlugin {
name = "vim-textobj-xmlattr"; name = "vim-textobj-xmlattr";
src = final.fetchFromGitHub { src = final.fetchFromGitHub {