aboutsummaryrefslogtreecommitdiff
path: root/dotfiles
diff options
context:
space:
mode:
authorYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-09-28 23:39:24 +0300
committerYaroslav de la Peña Smirnov <yps@yaroslavps.com>2022-09-28 23:39:24 +0300
commitc28be931f8bf6805bda1a79fdab76739fd4cb785 (patch)
tree62c1079f162469274cf468677139a1f8ec38e2bc /dotfiles
parent5ec55f35744239e6a25ed651c5b87335a04653b6 (diff)
downloadvimrice-c28be931f8bf6805bda1a79fdab76739fd4cb785.tar.gz
vimrice-c28be931f8bf6805bda1a79fdab76739fd4cb785.zip
Insert datetime binding
Diffstat (limited to 'dotfiles')
-rw-r--r--dotfiles/.config/nvim/init.vim6
1 files changed, 4 insertions, 2 deletions
diff --git a/dotfiles/.config/nvim/init.vim b/dotfiles/.config/nvim/init.vim
index f2525d3..60fa726 100644
--- a/dotfiles/.config/nvim/init.vim
+++ b/dotfiles/.config/nvim/init.vim
@@ -8,8 +8,6 @@ if empty(glob('~/.local/share/nvim/site/autoload/plug.vim'))
autocmd VimEnter * PlugInstall --sync | source $MYVIMRC
endif
-" TODO: bind to insert datetime
-
call plug#begin('~/.local/share/nvim/site/plugged')
Plug 'junegunn/goyo.vim'
Plug 'PotatoesMaster/i3-vim-syntax'
@@ -224,6 +222,10 @@ call plug#end()
let g:goyo_width = 100
map <leader>g :Goyo<CR>
+" Insert datetime
+ map <leader>d :r!date +"\%Y-\%m-\%dT\%H:\%M:\%S"<CR>kJ
+ map <leader>в :r!date +"\%Y-\%m-\%dT\%H:\%M:\%S"<CR>kJ
+
" LSP
if has('nvim-0.6')
set omnifunc=v:lua.vim.lsp.omnifunc