From ad41ad7d6524657f67565ec5782270f9dab55b0b Mon Sep 17 00:00:00 2001 From: PowerUser64 Date: Fri, 3 Sep 2021 01:46:35 -0700 Subject: [PATCH] removed swapfiles --- .config/nvim/lua/settings.lua | 31 ++++++++++++++++--------------- 1 file changed, 16 insertions(+), 15 deletions(-) diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index de4143d..fa33632 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua @@ -12,6 +12,7 @@ set smartindent set undodir=~/.vim/undo set undofile +set noswapfile set guifont=SauceCodePro\ NF\ Regular @@ -55,8 +56,8 @@ command! Term tabnew | setlocal nospell | term autocmd FileType help setlocal nospell " test whitespace -> " more test whitespace -> - " Indented text - " even more test whitespace -> +" Indented text +" even more test whitespace -> " Key bindings let mapleader = " " @@ -111,7 +112,7 @@ vmap g^ " vmap K " vmap L - colorscheme slate +colorscheme slate ]] vim.cmd [[ @@ -120,16 +121,16 @@ vim.cmd [[ "If you're using tmux version 2.2 or later, you can remove the outermost $TMUX check and use tmux's 24-bit color support "(see < http://sunaku.github.io/tmux-24bit-color.html#usage > for more information.) if (empty($TMUX)) - if (has("nvim")) - "For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > - let $NVIM_TUI_ENABLE_TRUE_COLOR=1 - endif - "For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > - "Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > - " < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > - if (has("termguicolors")) - set termguicolors - endif +if (has("nvim")) +"For Neovim 0.1.3 and 0.1.4 < https://github.com/neovim/neovim/pull/2198 > +let $NVIM_TUI_ENABLE_TRUE_COLOR=1 +endif +"For Neovim > 0.1.5 and Vim > patch 7.4.1799 < https://github.com/vim/vim/commit/61be73bb0f965a895bfb064ea3e55476ac175162 > +"Based on Vim patch 7.4.1770 (`guicolors` option) < https://github.com/vim/vim/commit/8a633e3427b47286869aa4b96f2bfc1fe65b25cd > +" < https://github.com/neovim/neovim/wiki/Following-HEAD#20160511 > +if (has("termguicolors")) +set termguicolors +endif endif ]] @@ -137,8 +138,8 @@ endif vim.cmd [[ xnoremap @ :call ExecuteMacroOverVisualRange() function! ExecuteMacroOverVisualRange() - echo "@".getcmdline() - execute ":'<,'>normal @".nr2char(getchar()) +echo "@".getcmdline() +execute ":'<,'>normal @".nr2char(getchar()) endfunction ]]