kakoune: configure angular language server
This commit is contained in:
parent
e4de4e62e0
commit
a4494d86d4
|
@ -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'
|
||||||
}
|
}
|
||||||
|
|
|
@ -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"]
|
||||||
|
|
|
@ -1,10 +1,8 @@
|
||||||
# {{@@ header() @@}}
|
# {{@@ 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-u> 10k
|
||||||
|
map global normal <c-n> 10j
|
||||||
map global normal <c-r> 10j
|
|
||||||
map global normal <c-w> 10k
|
|
||||||
|
|
||||||
# alt i makes searches case insensitive
|
# alt i makes searches case insensitive
|
||||||
map global prompt <a-i> '<c-a>(?i)<c-e>'
|
map global prompt <a-i> '<c-a>(?i)<c-e>'
|
||||||
|
|
Loading…
Reference in a new issue