From 5df0ce6154f4f4ccdff829deb58a9ecf61b219d4 Mon Sep 17 00:00:00 2001 From: Mika Vilpas Date: Sat, 19 Oct 2024 20:27:30 +0300 Subject: [PATCH] style: fix typo in comment --- lua/yazi/event_handling/nvim_event_handling.lua | 2 +- .../lsp/embedded-lsp-file-operations/lsp-file-operations.lua | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/lua/yazi/event_handling/nvim_event_handling.lua b/lua/yazi/event_handling/nvim_event_handling.lua index db0db98f..90a40b98 100644 --- a/lua/yazi/event_handling/nvim_event_handling.lua +++ b/lua/yazi/event_handling/nvim_event_handling.lua @@ -9,7 +9,7 @@ local M = {} ---@alias YaziNeovimEvent.YaziRenamedOrMovedData {changes: table} # a table of old paths to new paths ----Emit and event when files are renamed or moved. +---Emit an event when files are renamed or moved. ---@param event YaziRenameEvent | YaziMoveEvent | YaziBulkEvent ---@see YaziNeovimEvent.YaziRenamedOrMovedData function M.emit_renamed_or_moved_event(event) diff --git a/lua/yazi/lsp/embedded-lsp-file-operations/lsp-file-operations.lua b/lua/yazi/lsp/embedded-lsp-file-operations/lsp-file-operations.lua index 647e2f07..35d59898 100644 --- a/lua/yazi/lsp/embedded-lsp-file-operations/lsp-file-operations.lua +++ b/lua/yazi/lsp/embedded-lsp-file-operations/lsp-file-operations.lua @@ -120,7 +120,7 @@ M.setup = function(opts) id = id, event = event, handler = function(args) - -- translate neo-tree arguemnts to the same format as nvim-tree + -- translate neo-tree arguments to the same format as nvim-tree if type(args) == "table" then args = { old_name = args.source, new_name = args.destination } else