Comments (5)
I'm not so sure it is supported, I haven't found any examples on the web.
I think this might be supported in the future, potentially, but not currently:
There's also no option for that available in the schema either.
However, there is some code which handles actions --> https://github.com/mattn/efm-langserver/blob/master/langserver/handle_text_document_code_action.go, so I'm even more confused.
Would appreciate any response in this matter, I tried switching from null-ls to efm, but without code actions I think I'll just go with the fork (none-ls).
from efm-langserver.
thanks for the reply, but the example in README.md, don't describe how to configure the commands, for instance, I tried to add a code-action to change the file permissions, but it fails.
Config (lua format due to neovim):
commands = {
{
command = 'chmod +x ',
arguments = { '${INPUT}' },
title = 'chmod+x',
},
},
And I got the action in my code actions selector:
![image](https://private-user-images.githubusercontent.com/120483/307583293-16326971-e67b-4fc7-b1ba-121690c4cd0b.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MjMzNDk5MzYsIm5iZiI6MTcyMzM0OTYzNiwicGF0aCI6Ii8xMjA0ODMvMzA3NTgzMjkzLTE2MzI2OTcxLWU2N2ItNGZjNy1iMWJhLTEyMTY5MGM0Y2QwYi5wbmc_WC1BbXotQWxnb3JpdGhtPUFXUzQtSE1BQy1TSEEyNTYmWC1BbXotQ3JlZGVudGlhbD1BS0lBVkNPRFlMU0E1M1BRSzRaQSUyRjIwMjQwODExJTJGdXMtZWFzdC0xJTJGczMlMkZhd3M0X3JlcXVlc3QmWC1BbXotRGF0ZT0yMDI0MDgxMVQwNDEzNTZaJlgtQW16LUV4cGlyZXM9MzAwJlgtQW16LVNpZ25hdHVyZT0wZWYzMDVjNjEyYjE2NjExZWM4MzUyYmFlOGE5NzY0MjNmMzhiZGE2YzZkMzU1MzVhZjVlZGJkMjkwYjE5M2NmJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCZhY3Rvcl9pZD0wJmtleV9pZD0wJnJlcG9faWQ9MCJ9.iSlsvdpEEl66D6m5hF_AMerGZTYOaXIkkRE84Gpg3w0)
But when selected I got the error:
Language server `efm` does not support command `efm-langserver chmod +x file:///Users/
kassioborges/.dotfiles/config/xdg/nvim/lua/plugins/lsp/servers/efm.lua`. This command may require a client extension.
from efm-langserver.
@mattn any news on this? I tried to send a request manually but not sure how to configure the server. :/
from efm-langserver.
ploase see Commands in example in README.md
from efm-langserver.
efm
does not support command
I don't understand what makes this error message.
from efm-langserver.
Related Issues (20)
- [Question] How to inject combination of variables in flag? HOT 2
- Language with .(dot) in the name for neovim lsp HOT 2
- skip lint request if rootMarker not found HOT 1
- feature request - add way to filter by filename is in root path
- use intermediate / temporary file HOT 5
- Don't create a force creating an `~/.config/efm-langserver` folder HOT 2
- `json` config isn't working HOT 2
- Cannot work in termux (workaround is to build `efm` with `GOOS=android`)
- Prettier in efm-langserver seems to be ignoring my tsx files HOT 3
- New --line-ranges optin for black HOT 1
- PHP issue
- feature: support %-G HOT 2
- Need more clear errors instead of "format for LanguageID not supported" HOT 1
- Will not work properly if the path contains brackets
- When "lint-on-save", also lint when document is first opened HOT 1
- prettier: formatter is executed even if rootMarkers have no match HOT 2
- More markdownlint rules triggered from CLI than from efm
- Text edits which have the same start position are reversed HOT 9
- Help on python: darglint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from efm-langserver.