Skip to content

Commit

Permalink
Use the new diagnostic disable API
Browse files Browse the repository at this point in the history
  • Loading branch information
Olical committed May 26, 2024
1 parent 2a162fb commit 2a13e2f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion fnl/conjure/log.fnl
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@
(nvim.buf_set_extmark buf state.jump-to-latest.ns 0 0 {}))

(when (and vim.diagnostic (= false (config.get-in [:log :diagnostics])))
(vim.diagnostic.disable buf))
(vim.diagnostic.enable false {:bufnr buf}))

(when (and vim.treesitter (= false (config.get-in [:log :treesitter])))
(vim.treesitter.stop buf)
Expand Down
2 changes: 1 addition & 1 deletion lua/conjure/log.lua

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 2a13e2f

Please sign in to comment.