mirror of
				https://github.com/NotAShelf/nvf.git
				synced 2025-10-26 09:20:08 +00:00 
			
		
		
		
	languages: set enableLSP to true while vim.lsp is enabled
		
	This commit is contained in:
		
					parent
					
						
							
								9bd2a6dcb4
							
						
					
				
			
			
				commit
				
					
						c30f07fcd6
					
				
			
		
					 1 changed files with 10 additions and 2 deletions
				
			
		|  | @ -1,4 +1,8 @@ | ||||||
| {lib, ...}: let | { | ||||||
|  |   config, | ||||||
|  |   lib, | ||||||
|  |   ... | ||||||
|  | }: let | ||||||
|   inherit (lib.nvim.languages) mkEnable; |   inherit (lib.nvim.languages) mkEnable; | ||||||
| in { | in { | ||||||
|   imports = [ |   imports = [ | ||||||
|  | @ -47,7 +51,11 @@ in { | ||||||
|   ]; |   ]; | ||||||
| 
 | 
 | ||||||
|   options.vim.languages = { |   options.vim.languages = { | ||||||
|     enableLSP = mkEnable "LSP"; |     # LSPs are now built into Neovim, and we should enable them by default | ||||||
|  |     # if `vim.lsp.enable` is true. | ||||||
|  |     enableLSP = mkEnable "LSP" // {default = config.vim.lsp.enable;}; | ||||||
|  | 
 | ||||||
|  |     # Those are still managed by plugins, and should be enabled here. | ||||||
|     enableDAP = mkEnable "Debug Adapter"; |     enableDAP = mkEnable "Debug Adapter"; | ||||||
|     enableTreesitter = mkEnable "Treesitter"; |     enableTreesitter = mkEnable "Treesitter"; | ||||||
|     enableFormat = mkEnable "Formatting"; |     enableFormat = mkEnable "Formatting"; | ||||||
|  |  | ||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue
	
	 Ching Pei Yang
					Ching Pei Yang