From f031a06fb7f62dfa398091d7c990c0b2e18e5be4 Mon Sep 17 00:00:00 2001 From: NiseVoid Date: Mon, 28 Feb 2022 18:55:43 +0100 Subject: [PATCH] [nvim] Update plug --- nvim/autoload/plug.vim | 4 +++- nvim/init.vim | 2 ++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/nvim/autoload/plug.vim b/nvim/autoload/plug.vim index b6e4cbf..8a195d3 100644 --- a/nvim/autoload/plug.vim +++ b/nvim/autoload/plug.vim @@ -242,6 +242,8 @@ function! plug#begin(...) let home = s:path(s:plug_fnamemodify(s:plug_expand(a:1), ':p')) elseif exists('g:plug_home') let home = s:path(g:plug_home) + elseif has('nvim') + let home = stdpath('data') . '/plugged' elseif !empty(&rtp) let home = s:path(split(&rtp, ',')[0]) . '/plugged' else @@ -405,7 +407,7 @@ function! plug#end() for [map, names] in items(lod.map) for [mode, map_prefix, key_prefix] in - \ [['i', '', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] + \ [['i', '', ''], ['n', '', ''], ['v', '', 'gv'], ['o', '', '']] execute printf( \ '%snoremap %s %s:call lod_map(%s, %s, %s, "%s")', \ mode, map, map_prefix, string(map), string(names), mode != 'i', key_prefix) diff --git a/nvim/init.vim b/nvim/init.vim index abdd476..78fd6b6 100644 --- a/nvim/init.vim +++ b/nvim/init.vim @@ -55,6 +55,8 @@ set tabstop=4 shiftwidth=4 noexpandtab autocmd BufRead,BufNewFile *.py set tabstop=4 shiftwidth=4 noexpandtab autocmd BufRead,BufNewFile *.yml set tabstop=2 shiftwidth=2 expandtab autocmd BufRead,BufNewFile *.yaml set tabstop=2 shiftwidth=2 expandtab +autocmd BufRead,BufNewFile *.ts set tabstop=2 shiftwidth=2 expandtab +autocmd BufRead,BufNewFile *.vue set tabstop=2 shiftwidth=2 expandtab " Disable auto newlines set wrap