nvim: enable treesitter globally for now
This commit is contained in:
		
							parent
							
								
									a3deec1c17
								
							
						
					
					
						commit
						ad52e357a9
					
				
					 1 changed files with 5 additions and 10 deletions
				
			
		| 
						 | 
					@ -18,17 +18,12 @@ require('lazy').setup {
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
--[[ plugin configs and maps ]]
 | 
					--[[ plugin configs and maps ]]
 | 
				
			||||||
local conf_ll_sep = "\u{2022}"
 | 
					 | 
				
			||||||
local conf_nvim_treesitter = {
 | 
					 | 
				
			||||||
        highlight = {
 | 
					 | 
				
			||||||
            enable = true
 | 
					 | 
				
			||||||
        }
 | 
					 | 
				
			||||||
}
 | 
					 | 
				
			||||||
 | 
					 | 
				
			||||||
require('gitsigns').setup()
 | 
					require('gitsigns').setup()
 | 
				
			||||||
if not vim.fn.has('Windows') then
 | 
					require('nvim-treesitter.configs').setup {
 | 
				
			||||||
    require('nvim-treesitter.configs').setup(conf_nvim_treesitter)
 | 
					    highlight = {
 | 
				
			||||||
end
 | 
					        enable = true
 | 
				
			||||||
 | 
					    }
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
map('n', '<Leader>L', '<cmd>Lazy<CR>')
 | 
					map('n', '<Leader>L', '<cmd>Lazy<CR>')
 | 
				
			||||||
map('n', '<Leader>?', '<cmd>Cheat40<CR>')
 | 
					map('n', '<Leader>?', '<cmd>Cheat40<CR>')
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue