From b279c0cd95bc1246726deecf1199ea3c132ea0c6 Mon Sep 17 00:00:00 2001 From: jdhao Date: Tue, 23 Aug 2022 21:09:49 +0800 Subject: [PATCH] fix some typos --- autoload/utils.vim | 2 +- core/plugins.vim | 2 +- lua/plugins.lua | 2 +- lua/utils.lua | 2 +- my_snippets/tex.snippets | 2 +- 5 files changed, 5 insertions(+), 5 deletions(-) diff --git a/autoload/utils.vim b/autoload/utils.vim index d859775..65bdf6a 100644 --- a/autoload/utils.vim +++ b/autoload/utils.vim @@ -156,7 +156,7 @@ function! utils#Inside_git_repo() abort if match(res, 'true') == -1 return v:false else - " Manually trigger a specical user autocmd InGitRepo (to use it for + " Manually trigger a special user autocmd InGitRepo (to use it for " lazyloading of fugitive by packer.nvim). " See also https://github.com/wbthomason/packer.nvim/discussions/534. doautocmd User InGitRepo diff --git a/core/plugins.vim b/core/plugins.vim index 7749197..fd4a6a8 100644 --- a/core/plugins.vim +++ b/core/plugins.vim @@ -260,7 +260,7 @@ omap s """"""""""""""""""""""""""""vimtex settings""""""""""""""""""""""""""""" if ( g:is_win || g:is_mac ) && executable('latex') - " Hacks for inverse serach to work semi-automatically, + " Hacks for inverse search to work semi-automatically, " see https://jdhao.github.io/2021/02/20/inverse_search_setup_neovim_vimtex/. function! s:write_server_name() abort let nvim_server_file = (has('win32') ? $TEMP : '/tmp') . '/vimtexserver.txt' diff --git a/lua/plugins.lua b/lua/plugins.lua index 1b84475..c4cba2c 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -30,7 +30,7 @@ local packer_util = require('packer.util') packer.startup({ function(use) - -- it is recommened to put impatient.nvim before any other plugins + -- it is recommended to put impatient.nvim before any other plugins use {'lewis6991/impatient.nvim', config = [[require('impatient')]]} use({"wbthomason/packer.nvim", opt = true}) diff --git a/lua/utils.lua b/lua/utils.lua index 3312479..14cc7c2 100644 --- a/lua/utils.lua +++ b/lua/utils.lua @@ -15,7 +15,7 @@ function M.executable(name) return false end ---- Create a dir if if does not exist +--- Create a dir if it does not exist function M.may_create_dir(dir) local res = fn.isdirectory(dir) diff --git a/my_snippets/tex.snippets b/my_snippets/tex.snippets index fac3f3d..3b979f3 100644 --- a/my_snippets/tex.snippets +++ b/my_snippets/tex.snippets @@ -2,7 +2,7 @@ snippet use "usepackage" b \usepackage{${1:package}} endsnippet -snippet eqa "equation enviroment" b +snippet eqa "equation environment" b \begin{equation}\label{$1} $2 \end{equation}