Commit Graph

44 Commits

Author SHA1 Message Date
Alexander Courtis
53b0bcaada
chore: stylua column width 120 -> 140 (#2448)
* chore: stylua column width 120 -> 140

* chore: stylua column width 120 -> 140, tidy

* Revert "chore: stylua column width 120 -> 140, tidy"

This reverts commit 8a0524d6bd.

* chore: stylua column width 120 -> 140, tidy watcher.lua

* chore: stylua column width 120 -> 140, tidy diagnostics.lua

* chore: stylua column width 120 -> 140, tidy git.lua

* chore: stylua column width 120 -> 140, tidy open-file.lua

* chore: stylua column width 120 -> 140, tidy system-open.lua

* chore: stylua column width 120 -> 140, tidy runner.lua
2023-10-08 11:40:58 +11:00
Alexander Courtis
323f65cb9c
feat(#1917): add diagnostic highlighting and icon placement (#2396)
* feat(#1917): add renderer.highlight_diagnostics

* feat(#1917): add renderer.highlight_diagnostics

* feat(#1917): add enderer.icons.diagnostics_placement

* feat(#1917): add renderer.icons.show.diagnostics

* feat(#1917): document highlight overrides
2023-09-03 12:29:33 +10:00
Steven Stallion
8d82c4dbe1
feat: support vim.diagnostic.is_disabled() (#2232)
Co-authored-by: Alexander Courtis <alex@courtis.org>
2023-06-10 16:10:28 +10:00
CsYakamoz
874b7be5d0
fix(diagnostics): coc obey diagnostics.severity (#2072)
`diagnostics.severity` option do not work with coc
2023-03-25 16:06:21 +11:00
Alexander Courtis
b712b82b0c
fix(#1961): harden profiling functions (#1986) 2023-02-11 17:05:01 +11:00
Alexander Courtis
fee6801393 fix(diagnostics): do not show on file/dir with same prefix 2022-12-23 12:44:30 +11:00
Richard Li
3000797e53
fix(diagnostics): do not show on file/dir with same prefix (#1832)
* fix diagnostics showing up on file/dir with same prefix

* using fnamemodify instead of gsub
2022-12-23 12:36:23 +11:00
Richard Li
829e9f68e1
feat: add diagnostics.show_on_open_dirs git.show_on_open_dirs (#1778)
* feat(diagnostics): only show diagnostic on closed folder

* feat(git): only show git icon on closed folder
2022-11-29 11:12:34 +11:00
Ibrahim Abdelkareem
68a2a0971e
feat(diagnostics): add diagnostics.severity (#1755)
* feat: Support diagnostics severity

* fix: Revert Hunk

* feat: Supports min/max severity

* feat: Supports min/max severity: tidy doc

* feat: Supports min/max severity: tidy doc

* feat: Supports min/max severity: tidy doc

Co-authored-by: Alexander Courtis <alex@courtis.org>
2022-11-21 09:09:09 +11:00
Alexander Courtis
8cc369695b
fix: replace vim.* "requires" with explicit calls to vim functions (#1701) 2022-11-06 10:37:33 +11:00
Alexander Courtis
06e48c29c4
chore(watchers): refactor events and make debouncer safe
- fs poll -> fs events
- make debouncer safe and fix diagnostics events
2022-07-17 08:50:24 +02:00
Alexander Courtis
80d4f28383 feat(#1245): add next_diag_item and prev_diag_item actions 2022-07-03 16:04:49 +10:00
Kiyan
e6c1b4cd5b
chore(setup): make setup idempotent (#1340)
Co-authored-by: Alexander Courtis <alex@courtis.org>
2022-06-26 12:14:03 +02:00
Alexander Courtis
0373680819 #1301 nvim uses LuaJIT 2.1 -> lua 5.1 2022-05-29 12:29:40 +10:00
Alexander Courtis
c3b7be8d19
add .luarc.json for lua-language-server and fix a couple of nits (#1296) 2022-05-28 11:16:54 +02:00
Kiyan
f8312cd06f
feat(renderer): add ability to set git icons in signcolumn (#1242) 2022-05-14 09:54:27 +02:00
Michael
46014449b6
refactor: use lua api for user commands and autocommands (#1206)
BREAKING: plugin now requires nvim-0.7
2022-05-14 09:49:45 +02:00
Alexander Courtis
82ec79aac5
#1216 show diagnostic signs on all folders (#1244) 2022-05-10 11:22:11 +10:00
Alexander Courtis
a448e66dde
#1216 respond to CocDiagnosticChange (#1243) 2022-05-08 11:41:20 +02:00
Kiyan
b1dfcabba1
chore(diagnostics): clear whole group instead of keeping a table (#1241) 2022-05-08 11:40:53 +02:00
kiyan
958bac90d2 chore: drop 0.5 support in diagnostics 2022-04-20 21:40:43 +02:00
Alexander Courtis
7629d4d106
#1091 diagnostics logging (#1170) 2022-04-18 15:39:51 +02:00
kiyan
3cf67c5849 fix: remove diagnostics in help view
fixes #1088
2022-03-19 12:32:11 +01:00
kiyan
471afc13fe refacto: abstract TreeExplorer in core.lua 2022-03-09 22:01:54 +01:00
Kiyan
0816064a8b
chore: add stylua to format the codebase, and run on CI (#1055) 2022-03-06 17:33:30 +01:00
kiyan
5a6fd49ee5 fix: check bufnr is valid in diagnostics 2022-02-16 08:29:13 +01:00
kiyan
c584ac3509 fix: do not update diagnostics when tree is nil
fixes #984
fixes #981
2022-02-15 07:59:54 +01:00
Kiyan
6da7467944
refacto: buffer management, setup fixes, autocmd fixes (#967) 2022-02-14 19:16:45 +01:00
kiyan
ea92e7bf7c refacto: set tree explorer in the global state
also remove the redraw method and use renderer.draw immediately
2022-02-07 22:07:08 +01:00
kiyan
4a9e53143b refacto: ubiquitous language renaming
BREAKING
- rename all 'entry' to 'node' or '_node' if shadowing
- rename all 'entries' to 'nodes'
2022-02-05 18:10:09 +01:00
Reviakin Evgeny
239f2d6fea
show diagnostics on parent dirs if nodes with diagnostics are not visible (#862) 2021-12-24 12:47:23 +01:00
Jason Hansen
06a2b799c6
Fix for deprecated vim.lsp.diagnostic.get_all (#840) 2021-12-12 12:34:05 +01:00
kjssad
ea38eaa967
fix(nvim-0.6): wrong color group for warning sign (#792) 2021-11-27 14:07:36 +01:00
gegoune
5c32c1d8b3
chore(diagnostics): follow upstreams autocommand's rename (#796)
See: https://github.com/neovim/neovim/issues/14090#issuecomment-979424077
2021-11-27 13:32:30 +01:00
kiyan
fda5b82bdf fix: lsp diagnostics user autocmd setup 2021-10-10 17:02:34 +02:00
kiyan
94b8604e86 chore: complete the diagnostic setup migration
Colors groups and icons are now in diagnostics.lua. They are defined on
setup which allows an easier configuration and better documentation.
`lsp_diagnostics` boolean value has been moved into a table `diagnostics`
with `enable` and `icons` as properties.
2021-10-10 11:42:22 +02:00
kiyan
1edebb7894 chore: lsp diagnostics setup 2021-09-26 11:56:44 +02:00
wongxy
a89a0833da
fix(coc-diagnostic): Add necessary checks (#594) 2021-08-28 08:56:24 +02:00
wongxy
b8b70cf340
feat(diagnostics): Support coc as diagnostic source(#555) (#556) 2021-08-14 11:00:18 +02:00
Sindre T. Strøm
da09da3318
feat(diagnostics): More responsive and configurable diagnostics signs. (#303) 2021-04-16 17:57:16 +02:00
kiyan
b5ef2fb7f8 add better lsp diagnostic integration 2021-04-16 00:03:56 +02:00
Dmitriy
5c339e5a00
fix lsp diagnostics highligth: find_node index, bufnr (#295) 2021-04-14 23:03:25 +02:00
Kiyan
ff814676d5
chore: rewrite buffer/window handling into view file (#287) 2021-04-13 23:54:01 +02:00
Kiyan
82b20f5b5e
feat: nvim lsp integration (#260) 2021-04-08 23:30:35 +02:00