Skip to content

Commit 3176719

Browse files
author
Jose Alvarez
committed
fix: only try adding on FileType event
1 parent 43c2d9c commit 3176719

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

lua/null-ls/lspconfig.lua

+2-2
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@ function M.setup()
2020
default_config = config_def,
2121
}
2222

23-
-- listen on BufReadPost and attach if needed
23+
-- listen on FileType and attach if needed
2424
vim.cmd([[
2525
augroup null-ls
2626
autocmd!
27-
autocmd BufReadPost,FileType * unsilent lua require("null-ls.lspconfig").try_add()
27+
autocmd FileType * unsilent lua require("null-ls.lspconfig").try_add()
2828
augroup end
2929
]])
3030
end

0 commit comments

Comments
 (0)