kakoune: configure angular language server
This commit is contained in:
		
							parent
							
								
									e4de4e62e0
								
							
						
					
					
						commit
						a4494d86d4
					
				
					 3 changed files with 26 additions and 4 deletions
				
			
		| 
						 | 
				
			
			@ -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"]
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -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>'
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue