aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjdhao <jdhao@hotmail.com>2022-08-23 21:09:49 +0800
committerjdhao <jdhao@hotmail.com>2022-08-23 21:12:04 +0800
commitb279c0cd95bc1246726deecf1199ea3c132ea0c6 (patch)
tree34c5c9d261bfbfc590effae4c89a671cf705ffa2
parent96129335ad5dcb39ee68fcebfd15dfb01923fc14 (diff)
fix some typos
-rw-r--r--autoload/utils.vim2
-rw-r--r--core/plugins.vim2
-rw-r--r--lua/plugins.lua2
-rw-r--r--lua/utils.lua2
-rw-r--r--my_snippets/tex.snippets2
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 <Nop>
""""""""""""""""""""""""""""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}