kakoune: configure angular language server

This commit is contained in:
lelgenio 2023-01-26 17:21:26 -03:00
parent e4de4e62e0
commit beede40b9a
2 changed files with 24 additions and 0 deletions

View file

@ -27,6 +27,17 @@ hook global BufCreate .*\.html %{
set buffer formatcmd 'prettier --parser 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 %{ hook global BufCreate .*\.js %{
set buffer formatcmd 'prettier --parser babel' set buffer formatcmd 'prettier --parser babel'
} }

View file

@ -7,6 +7,19 @@ verbosity = 2
# set to 0 to disable # set to 0 to disable
timeout = 1800 # seconds = 30 minutes 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] [language.bash]
filetypes = ["sh"] filetypes = ["sh"]
roots = [".git", ".hg"] roots = [".git", ".hg"]