Steve Dignam

Results 174 comments of Steve Dignam

I ended up creating a separate type stub package: https://github.com/sbdchd/msgpack-types If you aren't interested in have the types in the package itself, would you be okay with me adding them...

Neoformat [used to work][1] async, but due to limitations with vim's api, specifically the lack of [`setbufline()`][0], users couldn't change the buffer. [0]: https://github.com/vim/vim/blob/9bd547aca41799605c3a3f83444f6725c2d6eda9/runtime/doc/todo.txt#L177 [1]: https://github.com/sbdchd/neoformat/commit/34d049fd82d86206ef0c153f886c9f5dc84f5494

Seems like neovim has `nvim_buf_set_lines()`

All that needs to happen is https://github.com/sbdchd/neoformat/commit/34d049fd82d86206ef0c153f886c9f5dc84f5494 gets patched onto master, and the [job dict][1] gets the current buffer number added so `buf_set_lines` can be used instead of `setline`. Also,...

To add on to what mentioned earlier, we also need to have an ability to switch between the sync and async functionality with variable, e.g., `g:neoformat_async = 1` https://github.com/sbdchd/neoformat/issues/106#issuecomment-373434576 This...

Neoformat currently uses `shiftwidth()` for js-beautify, and checking whether or not to use tabs should be similar. https://github.com/sbdchd/neoformat/blob/255239e217ae124b1438c35967597b63db328820/autoload/neoformat/formatters/javascript.vim#L8

I am pretty sure that a `formatprg` will override any other setup for that filetype. Not sure why the markdown `formatprg` is being used for other filetypes. If you remove...

Currently, visual selection works by sending the selected text to the stdin of the formatter. The resulting output can vary greatly depending on the formatter. For example with `js-beautify` and...

So ideally, instead of just using the current selection, Neoformat would use the entire buffer, but only update the selected area?

If you `set verbose=1`, and run `:Neoformat`, what exit code does it print out?