Issue with language settings #7101
-
After update from 23.03 to 23.05, i get always warning when trying to run helix :
And here is language. toml file settings |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 5 replies
-
Looks like you are running from master, #2507 was recently merged which changes language server config to be per language server instead of per language, so you would need something like: [language-server.rust-analyzer]
config = {} See https://docs.helix-editor.com/master/languages.html#language-server-configuration |
Beta Was this translation helpful? Give feedback.
-
I managed to get most of it working , but i dont know how (or where to add) [language.config.check] when i enable this it complains right away |
Beta Was this translation helpful? Give feedback.
-
It should be [language-server.rust-analyser.config.check]
command = "clippy" (Switched analyzer to analyser cause that's what your config used) |
Beta Was this translation helpful? Give feedback.
-
Hello, I need some help please 🙏🏻.
[[language]]
name = "vue"
file-types = ["vue"]
language-server = { command = "vue-language-server", args = ["--stdio"] }
formatter = { command = "prettier", args = ["--parser", "vue"] }
scope = "text.html.vue"
roots = ["package.json"]
injection-regex = "vue"
auto-format = true
[language.config.typescript]
tsdk = "/opt/homebrew/lib/node_modules/typescript/lib"
[language.config.languageFeatures]
semanticTokens = true
references = true
definition = true
typeDefinition = true
callHierarchy = true
hover = true
rename = true
renameFileRefactoring = true
signatureHelp = true
codeAction = true
completion = { defaultTagNameCase = 'both', defaultAttrNameCase = 'kebabCase' }
schemaRequestService = true
documentHighlight = true
documentLink = true
codeLens = true
diagnostics = true
[language.config.documentFeatures]
documentColor = false
selectionRange = true
foldingRange = true
linkedEditingRange = true
documentSymbol = true
documentFormatting = { defaultPrintWidth = 100 }
[[language]]
name = "vue"
scope = "text.html.vue"
injection-regex = "vue"
file-types = ["vue"]
auto-format = true
roots = ["package.json"]
formatter = { command = "prettier", args = ["--parser", "vue"] }
language-servers = ["vue-language-server"]
# Language Server configuration
[language-server.vue-language-server]
command = "vue-language-server"
args = ["--stdio"]
[language-server.vue-language-server.config]
typescript = { tsdk = "/opt/homebrew/lib/node_modules/typescript/lib" }
[language-server.vue-language-server.config.languageFeatures]
semanticTokens = true
references = true
definition = true
typeDefinition = true
callHierarchy = true
hover = true
rename = true
renameFileRefactoring = true
signatureHelp = true
codeAction = true
completion = { defaultTagNameCase = 'both', defaultAttrNameCase = 'kebabCase' }
schemaRequestService = true
documentHighlight = true
documentLink = true
codeLens = true
diagnostics = true
[language-server.vue-language-server.config.documentFeatures]
documentColor = false
selectionRange = true
foldingRange = true
linkedEditingRange = true
documentSymbol = true
documentFormatting = { defaultPrintWidth = 100 } I appreciate your help. |
Beta Was this translation helpful? Give feedback.
-
Try putting the |
Beta Was this translation helpful? Give feedback.
It should be
(Switched analyzer to analyser cause that's what your config used)