Skip to content
This repository was archived by the owner on Jul 6, 2021. It is now read-only.

Commit 5087184

Browse files
committed
fix: make the default show_line_diagnostics works(#14)
1 parent 31f54aa commit 5087184

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

lua/diagnostic.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ function M.publish_diagnostics(bufnr)
7272
if result == nil then return end
7373
vim.api.nvim_command('lexpr []')
7474
util.buf_clear_diagnostics(bufnr)
75+
vim.lsp.util.buf_diagnostics_save_positions(bufnr, result.diagnostics)
7576
util.buf_diagnostics_save_positions(bufnr, result.diagnostics)
7677
util.buf_diagnostics_underline(bufnr, result.diagnostics)
7778
if vim.api.nvim_get_var('diagnostic_show_sign') == 1 then

0 commit comments

Comments
 (0)