mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-31 11:02:37 +00:00 
			
		
		
		
	fix(clangd): use same offsetEncoding as null-ls
This commit is contained in:
		
					parent
					
						
							
								b5d5700fcc
							
						
					
				
			
			
				commit
				
					
						99c69c4e9c
					
				
			
		
					 1 changed files with 4 additions and 1 deletions
				
			
		|  | @ -24,8 +24,11 @@ with builtins; let | ||||||
|     clangd = { |     clangd = { | ||||||
|       package = pkgs.clang-tools; |       package = pkgs.clang-tools; | ||||||
|       lspConfig = '' |       lspConfig = '' | ||||||
|  |         local clangd_cap = capabilities | ||||||
|  |         -- use same offsetEncoding as null-ls | ||||||
|  |         clangd_cap.offsetEncoding = {"utf-16"} | ||||||
|         lspconfig.clangd.setup{ |         lspconfig.clangd.setup{ | ||||||
|           capabilities = capabilities; |           capabilities = clangd_cap; | ||||||
|           on_attach=default_on_attach; |           on_attach=default_on_attach; | ||||||
|           cmd = {"${cfg.lsp.package}/bin/clangd"}; |           cmd = {"${cfg.lsp.package}/bin/clangd"}; | ||||||
|           ${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.opts}"} |           ${optionalString (cfg.lsp.opts != null) "init_options = ${cfg.lsp.opts}"} | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
				Ching Pei Yang