kakoune: configure angular language server

This commit is contained in:
lelgenio 2023-01-26 17:21:26 -03:00 committed by Leonardo Eugênio
parent e4de4e62e0
commit a4494d86d4
3 changed files with 26 additions and 4 deletions

View file

@ -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'
}

View file

@ -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"]

View file

@ -1,10 +1,8 @@
# {{@@ header() @@}}
map global normal <c-d> 10j
# For colemak, this is pretty confortable, C-n = down, C-u = up
map global normal <c-u> 10k
map global normal <c-r> 10j
map global normal <c-w> 10k
map global normal <c-n> 10j
# alt i makes searches case insensitive
map global prompt <a-i> '<c-a>(?i)<c-e>'