From 2928f8fe31bacc287a988e02b7fe930f19c6a972 Mon Sep 17 00:00:00 2001 From: Kian-Meng Ang Date: Wed, 27 Jul 2022 19:48:14 +0800 Subject: [PATCH] fix(docs): typos (#1470) --- doc/nvim-tree-lua.txt | 6 +++--- lua/nvim-tree/actions/init.lua | 2 +- lua/nvim-tree/explorer/node-builders.lua | 2 +- lua/nvim-tree/utils.lua | 2 +- scripts/update-help.sh | 2 +- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/doc/nvim-tree-lua.txt b/doc/nvim-tree-lua.txt index c4c8645e..fe94d9f3 100644 --- a/doc/nvim-tree-lua.txt +++ b/doc/nvim-tree-lua.txt @@ -346,7 +346,7 @@ Completely disable netrw Type: `boolean`, Default: `false` *nvim-tree.hijack_netrw* -Hijack netrw windows (overriden if |disable_netrw| is `true`) +Hijack netrw windows (overridden if |disable_netrw| is `true`) Type: `boolean`, Default: `true` *nvim-tree.open_on_setup* @@ -883,7 +883,7 @@ The filter can be cleared with the `F` key by default. Type: `string`, Default: `"[FILTER]: "` *nvim-tree.live_filter.always_show_folders* - Wether to filter folders or not. + Whether to filter folders or not. Type: `boolean`, Default: `true` *nvim-tree.log* @@ -970,7 +970,7 @@ Going up a dir is bound to `-` by default in nvim-tree which is identical to vinegar, no change is needed here. You'll also need to set |nvim-tree.hijack_netrw| to `true` during setup. -A good functionnality to enable is |nvim-tree.hijack_directories|. +A good functionality to enable is |nvim-tree.hijack_directories|. ============================================================================== 5. API *nvim-tree-api* diff --git a/lua/nvim-tree/actions/init.lua b/lua/nvim-tree/actions/init.lua index e3b9366f..89f343ed 100644 --- a/lua/nvim-tree/actions/init.lua +++ b/lua/nvim-tree/actions/init.lua @@ -1,4 +1,4 @@ --- @deprecated: new implemention in nvim-tree.keymap. Please do not edit this file. +-- @deprecated: new implementation in nvim-tree.keymap. Please do not edit this file. local a = vim.api diff --git a/lua/nvim-tree/explorer/node-builders.lua b/lua/nvim-tree/explorer/node-builders.lua index a6ffa7d7..48b774c8 100644 --- a/lua/nvim-tree/explorer/node-builders.lua +++ b/lua/nvim-tree/explorer/node-builders.lua @@ -49,7 +49,7 @@ end -- when it has no real reason to. Maybe there is a reason, but errno is definitely wrong. -- So we need to check for link_to ~= nil when adding new links to the main tree function M.link(parent, absolute_path, name) - --- I dont know if this is needed, because in my understanding, there isnt hard links in windows, but just to be sure i changed it. + --- I dont know if this is needed, because in my understanding, there isn't hard links in windows, but just to be sure i changed it. local link_to = uv.fs_realpath(absolute_path) local open, nodes, has_children, watcher if (link_to ~= nil) and uv.fs_stat(link_to).type == "directory" then diff --git a/lua/nvim-tree/utils.lua b/lua/nvim-tree/utils.lua index 6ff48111..d4d6c38b 100644 --- a/lua/nvim-tree/utils.lua +++ b/lua/nvim-tree/utils.lua @@ -314,7 +314,7 @@ local function timer_stop_close(timer) end end ----Execute callback timeout ms after the lastest invocation with context. +---Execute callback timeout ms after the latest invocation with context. ---Waiting invocations for that context will be discarded. ---Invocation will be rescheduled while a callback is being executed. ---Caller must ensure that callback performs the same or functionally equivalent actions. diff --git a/scripts/update-help.sh b/scripts/update-help.sh index 1ff23041..46ac7c68 100755 --- a/scripts/update-help.sh +++ b/scripts/update-help.sh @@ -2,7 +2,7 @@ # run after changing nvim-tree.lua DEFAULT_OPTS or nvim-tree/actions/init.lua M.mappings # scrapes and updates nvim-tree-lua.txt -# run from repositry root: scripts/update-default-opts.sh +# run from repository root: scripts/update-default-opts.sh begin="BEGIN_DEFAULT_OPTS"