diff --git a/README.md b/README.md index 10cbcaa..5fdd369 100644 --- a/README.md +++ b/README.md @@ -114,7 +114,7 @@ local opts = { | symbol_blacklist | Which symbols to ignore ([possible values](./lua/symbols-outline/symbols.lua)) | table (array) | {} | | autofold_depth | Depth past which nodes will be folded by default | int | nil | | auto_unfold_hover | Automatically unfold hovered symbol | boolean | true | -| fold_markers | Markers to denote foldable symbol's status | table (array) | { '', '' } | +| fold_markers | Markers to denote foldable symbol's status | table (array) | { '', '' } | | wrap | Whether to wrap long lines, or let them flow off the window | boolean | false | ## Commands diff --git a/lua/symbols-outline/view.lua b/lua/symbols-outline/view.lua index dc78e0c..3ffd0f6 100644 --- a/lua/symbols-outline/view.lua +++ b/lua/symbols-outline/view.lua @@ -57,9 +57,9 @@ end function View:is_open() return self.winnr - and self.bufnr - and vim.api.nvim_buf_is_valid(self.bufnr) - and vim.api.nvim_win_is_valid(self.winnr) + and self.bufnr + and vim.api.nvim_buf_is_valid(self.bufnr) + and vim.api.nvim_win_is_valid(self.winnr) end return View