kakoune: configure angular language server
This commit is contained in:
parent
e4de4e62e0
commit
beede40b9a
|
@ -27,6 +27,17 @@ hook global BufCreate .*\.html %{
|
|||
set buffer formatcmd 'prettier --parser html'
|
||||
}
|
||||
|
||||
hook global BufCreate .*\.component\.html %{
|
||||
set buffer filetype angular
|
||||
}
|
||||
|
||||
hook global WinSetOption filetype=angular %[
|
||||
set-option buffer extra_word_chars '_' '-'
|
||||
|
||||
require-module html
|
||||
add-highlighter buffer/angular ref html
|
||||
]
|
||||
|
||||
hook global BufCreate .*\.js %{
|
||||
set buffer formatcmd 'prettier --parser babel'
|
||||
}
|
||||
|
|
|
@ -7,6 +7,19 @@ verbosity = 2
|
|||
# set to 0 to disable
|
||||
timeout = 1800 # seconds = 30 minutes
|
||||
|
||||
[language.angular]
|
||||
filetypes = ["angular"]
|
||||
roots = [".angular", ".git"]
|
||||
command = "node"
|
||||
args = [
|
||||
"/home/lelgenio/.config/yarn/global/node_modules/@angular/language-server",
|
||||
"--ngProbeLocations",
|
||||
"/home/lelgenio/.config/yarn/global/node_modules",
|
||||
"--tsProbeLocations",
|
||||
"/home/lelgenio/.config/yarn/global/node_modules",
|
||||
"--stdio",
|
||||
]
|
||||
|
||||
[language.bash]
|
||||
filetypes = ["sh"]
|
||||
roots = [".git", ".hg"]
|
||||
|
|
Loading…
Reference in a new issue