瀏覽代碼

chore: fix typos (#2292)

dundargoc 3 年之前
父節點
當前提交
4400e39a69

+ 1 - 1
lua/lvim/core/telescope.lua

@@ -4,7 +4,7 @@ function M.config()
   -- Define this minimal config so that it's available if telescope is not yet available.
 
   lvim.builtin.telescope = {
-    ---@usage disable telescope completely [not recommeded]
+    ---@usage disable telescope completely [not recommended]
     active = true,
     on_config_done = nil,
   }

+ 1 - 1
lua/lvim/core/which-key.lua

@@ -2,7 +2,7 @@ local M = {}
 
 M.config = function()
   lvim.builtin.which_key = {
-    ---@usage disable which-key completely [not recommeded]
+    ---@usage disable which-key completely [not recommended]
     active = true,
     on_config_done = nil,
     setup = {

+ 1 - 1
lua/lvim/interface/text.lua

@@ -56,7 +56,7 @@ end
 --- Pretty format tables
 -- @param entries The table to format
 -- @param col_count The number of column to span the table on
--- @param col_sep The separator between each colummn, default: " "
+-- @param col_sep The separator between each column, default: " "
 function M.format_table(entries, col_count, col_sep)
   col_sep = col_sep or " "
 

+ 1 - 1
lua/lvim/keymappings.lua

@@ -133,7 +133,7 @@ function M.clear(keymaps)
   for mode, mappings in pairs(keymaps) do
     local translated_mode = mode_adapters[mode] or mode
     for key, _ in pairs(mappings) do
-      -- some plugins may override default bindings that the user hasn't manually overriden
+      -- some plugins may override default bindings that the user hasn't manually overridden
       if default[mode][key] ~= nil or (default[translated_mode] ~= nil and default[translated_mode][key] ~= nil) then
         pcall(vim.api.nvim_del_keymap, translated_mode, key)
       end

+ 1 - 1
lua/lvim/utils.lua

@@ -58,7 +58,7 @@ function M.generate_settings()
 end
 
 --- Returns a table with the default values that are missing.
---- either paramter can be empty.
+--- either parameter can be empty.
 --@param config (table) table containing entries that take priority over defaults
 --@param default_config (table) table contatining default values if found
 function M.apply_defaults(config, default_config)

+ 2 - 2
tests/specs/bootstrap_spec.lua

@@ -6,12 +6,12 @@ a.describe("initial start", function()
   local lvim_config_path = get_config_dir() or home_dir .. "/.config/lvim"
   local lvim_runtime_path = get_runtime_dir() or home_dir .. "/.local/share/lunarvim"
 
-  a.it("shoud be able to detect test environment", function()
+  a.it("should be able to detect test environment", function()
     assert.truthy(os.getenv "LVIM_TEST_ENV")
     assert.falsy(package.loaded["lvim.impatient"])
   end)
 
-  a.it("should not be reading default neovim directories in the home directoies", function()
+  a.it("should not be reading default neovim directories in the home directories", function()
     local rtp_list = vim.opt.rtp:get()
     assert.falsy(vim.tbl_contains(rtp_list, vim.fn.stdpath "config"))
   end)

+ 5 - 5
tests/specs/lsp_spec.lua

@@ -8,14 +8,14 @@ a.describe("lsp workflow", function()
   local Log = require "lvim.core.log"
   local logfile = Log:get_path()
 
-  a.it("shoud be able to delete ftplugin templates", function()
+  a.it("should be able to delete ftplugin templates", function()
     if utils.is_directory(lvim.lsp.templates_dir) then
       assert.equal(vim.fn.delete(lvim.lsp.templates_dir, "rf"), 0)
     end
     assert.False(utils.is_directory(lvim.lsp.templates_dir))
   end)
 
-  a.it("shoud be able to generate ftplugin templates", function()
+  a.it("should be able to generate ftplugin templates", function()
     if utils.is_directory(lvim.lsp.templates_dir) then
       assert.equal(vim.fn.delete(lvim.lsp.templates_dir, "rf"), 0)
     end
@@ -27,7 +27,7 @@ a.describe("lsp workflow", function()
     end)
   end)
 
-  a.it("shoud not attempt to re-generate ftplugin templates", function()
+  a.it("should not attempt to re-generate ftplugin templates", function()
     lvim.log.level = "debug"
 
     local plugins = require "lvim.plugins"
@@ -46,7 +46,7 @@ a.describe("lsp workflow", function()
     end)
   end)
 
-  a.it("shoud not include blacklisted servers in the generated templates", function()
+  a.it("should not include blacklisted servers in the generated templates", function()
     assert.True(utils.is_directory(lvim.lsp.templates_dir))
     require("lvim.lsp").setup()
 
@@ -57,7 +57,7 @@ a.describe("lsp workflow", function()
     end
   end)
 
-  a.it("shoud only include one server per generated template", function()
+  a.it("should only include one server per generated template", function()
     assert.True(utils.is_directory(lvim.lsp.templates_dir))
     require("lvim.lsp").setup()
 

+ 1 - 1
utils/docker/Dockerfile.local

@@ -20,7 +20,7 @@ RUN apt update && \
   /LunarVim/utils/installer/install-neovim-from-release && \
   /LunarVim/utils/installer/install.sh --local --no-install-dependencies
 
-# Setup LVIM to run on starup
+# Setup LVIM to run on startup
 ENTRYPOINT ["/bin/bash"]
 CMD ["lvim"]
 

+ 1 - 1
utils/docker/Dockerfile.remote

@@ -20,7 +20,7 @@ RUN apt update && \
   curl -LSs https://raw.githubusercontent.com/lunarvim/lunarvim/${LV_BRANCH}/utils/installer/install-neovim-from-release | bash && \
   LV_BRANCH=${LV_BRANCH} curl -LSs https://raw.githubusercontent.com/lunarvim/lunarvim/${LV_BRANCH}/utils/installer/install.sh | bash -s -- --no-install-dependencies
 
-# Setup LVIM to run on starup
+# Setup LVIM to run on startup
 ENTRYPOINT ["/bin/bash"]
 CMD ["lvim"]
 

+ 1 - 1
utils/installer/install-neovim-from-release

@@ -55,7 +55,7 @@ function verify_neovim() {
   DOWNLOADED_SHA="$(openssl dgst -sha256 "$DOWNLOAD_DIR/$ARCHIVE_NAME.tar.gz" | awk '{print $2}')"
 
   if [ "$RELEASE_SHA" != "$DOWNLOADED_SHA" ]; then
-    echo "Error! checksum mis-match."
+    echo "Error! checksum mismatch."
     echo "Expected: $RELEASE_SHA but got: $DOWNLOADED_SHA"
     exit 1
   fi