Skip to content

Commit

Permalink
docs: fix typos
Browse files Browse the repository at this point in the history
  • Loading branch information
dsully authored Mar 6, 2024
1 parent fbb139c commit 756c59f
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 11 deletions.
2 changes: 1 addition & 1 deletion lua/nui/input/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ input:map("n", "<Esc>", function()
end, { noremap = true })
```

You can manipulate the assocciated buffer and window using the
You can manipulate the associated buffer and window using the
`split.bufnr` and `split.winid` properties.

**NOTE**: the first argument accepts options for `nui.popup` component.
Expand Down
2 changes: 1 addition & 1 deletion lua/nui/layout/float.lua
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ end
function mod.process(box, meta)
-- luacov: disable
if box.mount or box.component or not box.box then
return error("invalid paramter: box")
return error("invalid parameter: box")
end
-- luacov: enable

Expand Down
2 changes: 1 addition & 1 deletion lua/nui/layout/split.lua
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ end
function mod.process(box, meta)
-- luacov: disable
if box.mount or box.component or not box.box then
return error("invalid paramter: box")
return error("invalid parameter: box")
end
-- luacov: enable

Expand Down
2 changes: 1 addition & 1 deletion lua/nui/menu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ local menu = Menu(popup_options, {
})
```

You can manipulate the assocciated buffer and window using the
You can manipulate the associated buffer and window using the
`split.bufnr` and `split.winid` properties.

**NOTE**: the first argument accepts options for `nui.popup` component.
Expand Down
2 changes: 1 addition & 1 deletion lua/nui/popup/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ local popup = Popup({
})
```

You can manipulate the assocciated buffer and window using the
You can manipulate the associated buffer and window using the
`split.bufnr` and `split.winid` properties.

## Options
Expand Down
2 changes: 1 addition & 1 deletion lua/nui/popup/border.lua
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ end
---@alias _nui_popup_border_style_char string|_nui_popup_border_style_char_tuple|NuiText
---@alias _nui_popup_border_style_builtin 'double'|'none'|'rounded'|'shadow'|'single'|'solid'
---@alias _nui_popup_border_style_list table<1|2|3|4|5|6|7|8, _nui_popup_border_style_char>
---@alias _nui_popup_border_style_map_position 'top_left'|'top'|'top_right'|'right'|'bottom_right'|'bottom'|'botom_left'|'left'
---@alias _nui_popup_border_style_map_position 'top_left'|'top'|'top_right'|'right'|'bottom_right'|'bottom'|'bottom_left'|'left'
---@alias _nui_popup_border_style_map table<_nui_popup_border_style_map_position, _nui_popup_border_style_char>
---@alias nui_popup_border_option_style _nui_popup_border_style_builtin|_nui_popup_border_style_list|_nui_popup_border_style_map

Expand Down
6 changes: 3 additions & 3 deletions lua/nui/popup/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,7 @@ function Popup:mount()
buffer = self.bufnr,
callback = function()
-- When two popup using the same buffer and both of them
-- are hiddden, calling `:show` for one of them fires
-- are hidden, calling `:show` for one of them fires
-- `BufWinEnter` for both of them. And in that scenario
-- one of them will not have `self.winid`.
if self.winid then
Expand Down Expand Up @@ -289,7 +289,7 @@ function Popup:show()
self._.loading = false
end

function Popup:_buf_destory()
function Popup:_buf_destroy()
if self.bufnr then
if vim.api.nvim_buf_is_valid(self.bufnr) then
u.clear_namespace(self.bufnr, self.ns_id)
Expand Down Expand Up @@ -318,7 +318,7 @@ function Popup:unmount()

self.border:unmount()

self:_buf_destory()
self:_buf_destroy()

self:_close_window()

Expand Down
2 changes: 1 addition & 1 deletion lua/nui/split/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ local split = Split({
})
```

You can manipulate the assocciated buffer and window using the
You can manipulate the associated buffer and window using the
`split.bufnr` and `split.winid` properties.

## Options
Expand Down
2 changes: 1 addition & 1 deletion lua/nui/split/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,7 @@ function Split:mount()
buffer = self.bufnr,
callback = function()
-- When two splits using the same buffer and both of them
-- are hiddden, calling `:show` for one of them fires
-- are hidden, calling `:show` for one of them fires
-- `BufWinEnter` for both of them. And in that scenario
-- one of them will not have `self.winid`.
if self.winid then
Expand Down

0 comments on commit 756c59f

Please sign in to comment.