Max
96a783fbd6
fix( #2519 ): Diagnostics Not Updated When Tree Not Visible ( #2597 )
...
* fix(#2519 ): diagnostics overhaul
Signed-off-by: iusmac <iusico.maxim@libero.it >
* fix: Properly filter diagnostics from coc
Also, while we're at it, refactor the lsp function for consistency.
There should be no functional change, just cosmetic.
Signed-off-by: iusmac <iusico.maxim@libero.it >
* Assign diagnostic version per node to reduce overhead
Signed-off-by: iusmac <iusico.maxim@libero.it >
* Require renderer once
Signed-off-by: iusmac <iusico.maxim@libero.it >
* Revert "Require renderer once"
Causes circular requires after the previous commit.
This reverts commit 7413041630 .
* Rename `buffer_severity_dict` to `BUFFER_SEVERITY`
Signed-off-by: iusmac <iusico.maxim@libero.it >
* Log diagnostics update properly
Signed-off-by: iusmac <iusico.maxim@libero.it >
* Implement error handling for coc.nvim
Signed-off-by: iusmac <iusico.maxim@libero.it >
* CI style fixes
Signed-off-by: iusmac <iusico.maxim@libero.it >
* Capture `Keyboard interrupt` when handling coc exceptions
Signed-off-by: iusmac <iusico.maxim@libero.it >
* add more doc
---------
Signed-off-by: iusmac <iusico.maxim@libero.it >
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-12-30 14:30:07 +11:00
Azad
50f30bcd8c
feat: add option to skip gitignored files on git navigation ( #2583 )
...
* feat: add option to skip gitignored files on git navigation
* Add API bindings
* stylua: ignore
2023-12-19 11:29:01 +01:00
Azad
34780aca5b
refactor: take single opts param on node navigation ( #2584 )
...
* refactor: take single `opts` param on node navigation
* `MoveOpts` -> `NavigationItemOpts`
2023-12-10 23:44:36 +01:00
Azad
13f967f8e7
chore: add type annotations and resolve LSP warnings ( #2555 )
...
* chore: add type annotations to (almost) all functions
* stylua
* Add classes for symlink nodes
* Replace deprecated `@vararg`
* Move node classes to `node` module
* Fix `Symlink*` classes
* add vim and libuv runtime for luals, qualify libuv types
* add scripts/luals-check, not quite ready for CI
* additional nil checks for git/init.lua and git/runner.lua
* additional nil checks for nvim-tree.lua
* wrap vim.cmd-as-a-function calls inside functions
* vim.tbl_filter predicate returns booleans
* Revert "add scripts/luals-check, not quite ready for CI"
This reverts commit c70229cad9 .
* Add `MinimalNode` class in `marks` module
* Fix various LSP warnings
* stylua
* Fix `Explorer` class, update related annotations and add necessary checks
* Add missing annotations to `live-filter`
* Add temporary aliases for `uv.*` types
* Resolve remaining LSP warnings
* Revert changes not related to internal types
* Minor adjustments
* Update doc comments style
* Minor adjustments (pt. 2)
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-12-09 11:34:35 +11:00
Azad
0a99c4a23e
feat: allow cycling on git/diagnostic/opened files navigation ( #2506 )
...
* feat: allow cycling on git/diagnostic/opened files navigation
* luacheck
* Remove useless nil check
* Cycle only if `wrapscan` is enabled
---------
Co-authored-by: Alexander Courtis <alex@courtis.org >
2023-11-07 00:39:08 +01:00
Alexander Courtis
0c9bfe7225
feat( #2092 ): add api.node.navigate.open.next, prev ( #2093 )
...
* feat(#2092 ): add api.node.navigate.open.next, prev
* feat(#2092 ): add api.node.navigate.listed.next, prev
* feat(#2092 ): add api.node.navigate.opened.next, prev
* feat(#2092 ): add api.node.navigate.opened.next, prev
2023-04-03 14:23:03 +10:00
Richard Li
29788cc32a
fix(git): git folder fixes and improvements ( #1809 )
...
* coding style
* outlined git.show_on_open_dirs behavior
* show some icon on opendir even if show_on_open_dir=false
and show all children's status on parent
* fixed renamed icon not showing
* sorted icons
* removed DU from deleted as file will show up in tree
* fixed update_git_status in reloaders not tested
* fixed Api.git.reload()
Tested update_git_status in reloaders.lua
* sort icon only if not git signcolumn
* fixed crashing when root dir isn't git dir
* made git.show_on_dirs doc more concise
* git_statuses -> git_status for consistency
* explorer/common.lua -> explorer/node.lua
* fixed #1784 conflict
* don't order icons
* Revert "don't order icons"
This reverts commit 23f6276ef7 .
2022-12-17 17:05:33 +11:00
Richard Li
9d9c5711dc
1786 git next prev land on dirs ( #1787 )
...
* Filtered dir with git status that are open when show_on_open_dir is false
* refactored for single source of truth of existence of git status on a node
Putting `has_git_status()` in `explorer.common` because that's where node.status is constructed
Or at least I think that's where it's constructed
* 1786 semantic nit
Co-authored-by: Alexander Courtis <alex@courtis.org >
2022-12-03 14:39:00 +11:00
kiyan
2d2cbe63f4
refactor(actions): split movements into multiple modules
2022-07-10 09:53:58 +02:00