add treesitter with color customization
This commit is contained in:
		
							parent
							
								
									4f4e77d2e8
								
							
						
					
					
						commit
						f4fa48ed39
					
				
					 2 changed files with 22 additions and 0 deletions
				
			
		
							
								
								
									
										20
									
								
								lua/lang.lua
									
										
									
									
									
								
							
							
						
						
									
										20
									
								
								lua/lang.lua
									
										
									
									
									
								
							|  | @ -61,6 +61,26 @@ local on_attach = function(client, bufnr) | |||
|     end | ||||
| end | ||||
| 
 | ||||
| require('nvim-treesitter.configs').setup { | ||||
|   ensure_installed = { "lua", "rust", "elm", "python", "toml" }, | ||||
|   auto_install = true, | ||||
|   highlight = { | ||||
|     enable = true, | ||||
|     additional_vim_regex_highlighting=false, | ||||
|   }, | ||||
|   ident = { | ||||
|       enable = true, | ||||
|   }, | ||||
|   rainbow = { | ||||
|     enable = true, | ||||
|     extended_mode = false, | ||||
|     max_file_lines = nil, | ||||
|   } | ||||
| } | ||||
| vim.api.nvim_set_hl(0, "@variable", { }) | ||||
| vim.api.nvim_set_hl(0, "@parameter", { }) | ||||
| 
 | ||||
| 
 | ||||
| local nvim_lsp = require('lspconfig') | ||||
| local capabilities = vim.lsp.protocol.make_client_capabilities() | ||||
| 
 | ||||
|  |  | |||
|  | @ -9,6 +9,8 @@ return require('packer').startup(function() | |||
|       requires = {{'nvim-lua/popup.nvim'}, {'nvim-lua/plenary.nvim'}} | ||||
|   } | ||||
| 
 | ||||
|   use 'nvim-treesitter/nvim-treesitter' | ||||
| 
 | ||||
|   use { | ||||
|     'nvim-tree/nvim-tree.lua', | ||||
|     requires = 'nvim-tree/nvim-web-devicons', | ||||
|  |  | |||
		Reference in a new issue