Closed nicolimo86 closed 10 months ago
Your new keymap should work. I tested in my own config.
What language server are you using to format?
I tested on a terraform file (.tf). I have 2 language servers attached to the buffer:
Client: terraformls (id: 1, bufnr: [1])
Client: tflint (id: 2, bufnr: [1])
I have the same behaviour (pressing lf
after a selection does nothing) on bash file with bashls
language server attached to the buffer.
It works on python and lua files! This means that the language servers i'm using for terraform and bash don't support range formatting i guess.
Right now I can only format the whole buffer. I would like to be more precise and just format the selected lines.
My current config:
Adding a new key mapping in visual mode doesn't seem to work:
Can you please share your solution?