We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
0.8
latest
macOS
Python:
def fn(abc ): print('HELLO' ) return abc + 1
lua:
function fn(abc ) print("hello" ) return abc + 1 end
ts:
function fn(abc ) { console.log("hello" ); return abc + 1 }
command used:
:lua vim.lsp.buf.format({ range={ ["start"] = {1,0}, ["end"] = {2,-1} } })
correct range formatting
Python: ---- nothing happens ----
lua: --- keeps adding newline after format range ---
function fn(abc) print("hello") return abc + 1 end
ts: --- formats one line too little ---
I want to point out, that if I format the entire buffer with
lua vim.lsp.buf.format()
everything is formatted correctly. Python for example does not format no matter the range if I specify one
No response
The text was updated successfully, but these errors were encountered:
No branches or pull requests
Neovim version (nvim -v)
0.8
Language server name/version
latest
Operating system/version
macOS
Steps to reproduce using "nvim -u minimal_init.lua"
Python:
lua:
ts:
command used:
Expected behavior
correct range formatting
Actual behavior
Python:
---- nothing happens ----
lua:
--- keeps adding newline after format range ---
ts:
--- formats one line too little ---
I want to point out, that if I format the entire buffer with
lua vim.lsp.buf.format()
everything is formatted correctly. Python for example does not format no matter the range if I specify one
Log file
No response
The text was updated successfully, but these errors were encountered: