~kaction/config

b5b94a0e6dc7b070bb279ff01976ab78f2efcbaa — Dmitry Bogatov 2 months ago 47746ff
neovim: configure "timestamp" plugin

This configuration mimics default behaviour of "time-stamp", so I can
interoperate with emacs users.
3 files changed, 15 insertions(+), 0 deletions(-)

M universe/neovim/default.nix
M universe/neovim/init.vim
A universe/neovim/src/vim-timestamp.json
M universe/neovim/default.nix => universe/neovim/default.nix +1 -0
@@ 43,6 43,7 @@ in wrapNeovim nightly {
        (plugin ./src/vim-gemini.json)
        (plugin ./src/vim-vidir.json)
        (plugin ./src/vim-lspconfig.json)
        (plugin ./src/vim-timestamp.json)
      ];
    };
    customRC = ''

M universe/neovim/init.vim => universe/neovim/init.vim +4 -0
@@ 48,6 48,10 @@ let g:pgsql_pl = ['python']
" substitution. Make it believe that shell is actually bash.
let g:is_bash=1
let g:sh_fold_enabled=7
" Goal here is to match emacs behaviour perfectly.
let g:timestamp_modelines=8
let g:timestamp_regexp = '\v\c%(Time-stamp:\s+).*'
let g:timestamp_rep='Time-stamp: <%Y-%m-%d %H:%M:%S dbogatov>'

map Q gq
tnoremap <C-_><C-_> <C-\><C-N>

A universe/neovim/src/vim-timestamp.json => universe/neovim/src/vim-timestamp.json +10 -0
@@ 0,0 1,10 @@
{
  "url": "https://github.com/vim-scripts/timestamp.vim",
  "rev": "0437f9bddd4e699e8e9de176daacec234d42b56c",
  "date": "2010-11-06T10:31:23-07:00",
  "path": "/nix/store/dgqrxxw9d0w9vz9rr809lg53yi6pbccj-timestamp.vim",
  "sha256": "1dvssbmz7xm4p83jmsqalkshbrk67cacsjvxjpnlw870zf2hqc8p",
  "fetchSubmodules": false,
  "deepClone": false,
  "leaveDotGit": false
}