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

Commit 2e79523

Browse files
committed
fix: call modify callback in on_attach only #12
1 parent c625214 commit 2e79523

2 files changed

Lines changed: 1 addition & 1 deletion

File tree

after/plugin/diagnostic.vim

Lines changed: 0 additions & 1 deletion
This file was deleted.

lua/diagnostic.lua

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,7 @@ end
102102

103103
M.on_attach = function(_, _)
104104
-- Setup autocmd
105+
M.modifyCallback()
105106
vim.api.nvim_command [[augroup DiagnosticRefresh]]
106107
vim.api.nvim_command [[autocmd BufWinEnter,TabEnter <buffer> lua require'diagnostic'.refresh_diagnostics()]]
107108
vim.api.nvim_command [[augroup end]]

0 commit comments

Comments
 (0)