Skip to content

Commit 1052939

Browse files
fix!: Remove diagnostics
1 parent 9917c07 commit 1052939

File tree

6 files changed

+12
-97
lines changed

6 files changed

+12
-97
lines changed

DOCS.md

Lines changed: 10 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -14,19 +14,18 @@
1414
6. [Edit Src mappings](#edit-src)
1515
7. [Text objects](#text-objects)
1616
8. [Dot repeat](#dot-repeat)
17-
4. [Document Diagnostics](#document-diagnostics)
18-
5. [Tables](#tables)
19-
6. [Hyperlinks](#hyperlinks)
20-
7. [Autocompletion](#autocompletion)
21-
8. [Abbreviations](#abbreviations)
22-
9. [Formatting](#formatting)
23-
10. [User interface](#user-interface)
17+
4. [Tables](#tables)
18+
5. [Hyperlinks](#hyperlinks)
19+
6. [Autocompletion](#autocompletion)
20+
7. [Abbreviations](#abbreviations)
21+
8. [Formatting](#formatting)
22+
9. [User interface](#user-interface)
2423
1. [Colors](#colors)
2524
2. [Menu](#menu)
26-
11. [Advanced search](#advanced-search)
27-
12. [Notifications (experimental)](#notifications-experimental)
28-
13. [Clocking](#clocking)
29-
14. [Changelog](#changelog)
25+
10. [Advanced search](#advanced-search)
26+
11. [Notifications (experimental)](#notifications-experimental)
27+
12. [Clocking](#clocking)
28+
13. [Changelog](#changelog)
3029

3130
## Getting started with Orgmode
3231
To get a basic idea how Orgmode works, look at this screencast from [@dhruvasagar](https://github.com/dhruvasagar)
@@ -75,11 +74,6 @@ Examples (With fast access):
7574

7675
NOTE: Make sure fast access keys do not overlap. If that happens, first entry in list gets it.
7776

78-
#### **diagnostics**
79-
*type*: `boolean`<br />
80-
*default value*: `true`<br />
81-
Should error diagnostics be shown. If you are using Neovim 0.6.0 or higher, these will be shown via `vim.diagnostic`.<br />
82-
8377
#### **win_split_mode**
8478
*type*: `string|function|table`<br />
8579
*default value*: `horizontal`<br />
@@ -1025,10 +1019,6 @@ require('orgmode').setup({
10251019
### Dot repeat
10261020
To make all mappings dot repeatable, install [vim-repeat](https://github.com/tpope/vim-repeat) plugin.
10271021

1028-
## Document Diagnostics
1029-
Since tree-sitter parser is being used to parse the file, if there are some syntax errors,
1030-
it can potentially fail to parse specific parts of document when needed.
1031-
10321022
## Tables
10331023
Tables can be formatted via built in `formatexpr` (see `:help gq`)
10341024

ftplugin/org.vim

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,5 +35,3 @@ inoreabbrev <silent><buffer> :now: <C-R>=luaeval("require('orgmode.objects.date'
3535
" abbreviations
3636
inoreabbrev <silent><buffer> :itoday: <C-R>=luaeval("require('orgmode.objects.date').today():to_wrapped_string(false)")<CR>
3737
inoreabbrev <silent><buffer> :inow: <C-R>=luaeval("require('orgmode.objects.date').now():to_wrapped_string(false)")<CR>
38-
39-
command! -buffer OrgDiagnostics lua require('orgmode.org.diagnostics').print()

lua/orgmode/config/defaults.lua

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@ local DefaultConfig = {
4141
},
4242
org_src_window_setup = 'top 16new',
4343
org_edit_src_content_indentation = 0,
44-
diagnostics = true,
4544
win_split_mode = 'horizontal',
4645
win_border = 'single',
4746
notifications = {

lua/orgmode/init.lua

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,8 @@ function Org:setup_autocmds()
5050
vim.api.nvim_create_autocmd('BufWritePost', {
5151
pattern = { '*.org', '*.org_archive' },
5252
group = org_augroup,
53-
callback = function()
54-
require('orgmode').reload(vim.fn.expand('<afile>:p'))
55-
require('orgmode.org.diagnostics').report()
53+
callback = function(event)
54+
require('orgmode').reload(vim.fn.fnamemodify(event.file, ':p'))
5655
end,
5756
})
5857
vim.api.nvim_create_autocmd('FileType', {

lua/orgmode/org/diagnostics.lua

Lines changed: 0 additions & 70 deletions
This file was deleted.

queries/org/highlights.scm

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,4 +29,3 @@
2929
(plan) @OrgTSPlan
3030
(comment) @OrgTSComment @spell
3131
(directive) @OrgTSDirective
32-
(ERROR) @LspDiagnosticsUnderlineError

0 commit comments

Comments
 (0)