Closed xiaoshihou514 closed 3 months ago
the main idea of there i think we can now remove the custom spawn logic and move to vim.system with coroutine wrapper.
I can try...
~The main thread is still blocked on api.nvim_buf_set_lines(...)
, any way around it?~
Seem to apply to current version as well
~TODO: make linters support all config fields~
seems like need more test cases.
ok
test cases for new vim.spawn wrapper. single tool multiple tools etc case.
test cases for new vim.spawn wrapper. single tool multiple tools etc case.
Do I just assert true like in previous test?
that's too simple It's better pass some codes as stdin then check result.
<3 I'm going to love this plugin, thank you very much
hi hello you accidentally started writing double newlines to the linter (guard.nvim adds a newline to the end of each line in https://github.com/nvimdev/guard.nvim/blob/main/lua/guard/util.lua#L9-L16, and then nvim's SystemObj:write() adds a newline to the end of every line it writes, see https://github.com/neovim/neovim/blob/5331f87f6145f705c73c5c23f365cecb9fbc5067/runtime/lua/vim/_system.lua#L122-L125) which means the linter gets line numbers wrong and keeps complaining about there being too many newlines.
hi hello you accidentally started writing double newlines to the linter (guard.nvim adds a newline to the end of each line in https://github.com/nvimdev/guard.nvim/blob/main/lua/guard/util.lua#L9-L16, and then nvim's SystemObj:write() adds a newline to the end of every line it writes, see https://github.com/neovim/neovim/blob/5331f87f6145f705c73c5c23f365cecb9fbc5067/runtime/lua/vim/_system.lua#L122-L125) which means the linter gets line numbers wrong and keeps complaining about there being too many newlines.
Oh wow nice catch! That explains why clippy always reports the double amount of line number.
I will push a fix tonight after some more testing.
closes #68 #86 #123 #109 #76 #141 #111
changes
do_lint
now respects all config fieldsinternal changes