New issue
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
Feature request: inline options #3278
Comments
Is the approach of Global and local settings not sufficient? The same works for whole directories too. 😉 |
hmm.. I didn't get it at the first reading of docs.. Does it work for all options? For example is it allowed to do something like this? {
"lsp.autocompleteDetails": true,
"lsp.formatOnSave": false,
"lsp.server": "go=gopls,php=intelephense --stdio",
"/home/user/projects/name/huge.php": {
"lsp.server": ""
}
} (disable lsp for one file) |
Note that what is actually matched against the If your settings were instead (off the top of my head): {
"lsp.autocompleteDetails": true,
"lsp.formatOnSave": false,
"lsp.server": "go=gopls,php=intelephense --stdio",
"*/huge.php": {
"lsp.server": ""
}
} Then any file named On the topic of inline options being specified inside of files, you could totally make a plugin that does this. |
Thank you! Yeah, you are right: i faced with this weird issue - sometime the local settings were not applied, with your hints about paths puzzle is solved. I'll test this with more generic path (like you proposed).
hm... that's interesting, I'm not really familiar with Lua, but I really like the micro-editor, want to switch to it completely from emacs. But I'm used to using dired, magit and other emacs stuff, maybe this will encourage me to learn Lua and create plugins that will cover the lack of such functionality. |
It would be great to have support of inline options e.g. using
setlocal
command in comment will apply it in current buffer at first file opening:or, if it would be easier implemented, something like emacs .dir-locals.el: special file with custom options for current dir and its decendants or type of files
e.g. file with name
.micro.yaml
:The text was updated successfully, but these errors were encountered: