Closed hitfm00 closed 2 years ago
By default document formatting provider
is disabled in css language server. It has to be enabled in on_attach
method by:
client.server_capabilities.documentFormattingProvider = true
client.server_capabilities.documentRangeFormattingProvider = true
I'll add it soon to the config.
Edit: Implemented on dev
branch. @hitfm00 You can check if it works 😊
By default
document formatting provider
is disabled in css language server. It has to be enabled inon_attach
method by:client.server_capabilities.documentFormattingProvider = true client.server_capabilities.documentRangeFormattingProvider = true
I'll add it soon to the config.
Edit: Implemented on
dev
branch. @hitfm00 You can check if it works 😊
I did this changes, now I have no this error [LSP] Format request failed, no matching language servers.
but doesn't format :)
P.S. And one more question, how can I update Ecovim?) I'm just a new nvim user)
It's just github repo. Pull the changes after switching to dev branch. I've tested it, it works on dev.
Edit: You may need to run in nvim directory:
git config remote.origin.fetch "+refs/heads/:refs/remotes/origin/"
to be able to git fetch
and then checkout to dev
branch. By default, repository is locked on master branch.
@ecosse3 Yes, you are right, it's working, my bad :)
And I don't have a .git
repository in nvim
directory, I installed from this command:
bash <(curl -s https://raw.githubusercontent.com/ecosse3/nvim/master/.install/run.sh)
Great it works.
And I don't have a
.git
repository innvim
directory,
That's actually weird. I was testing it in docker and git repository exists after a fresh install via script. Will check it later. You can always git init and add remote origin if needed.
@ecosse3 oh, sorry, I did this command and it's work now
git config --global --add safe.directory /Users/maxim/.config/nvim
When I trying to format a file he just throw error what
.scss
with[LSP] Format request failed, no matching language servers.
:LspInfo
`