nvim
This commit is contained in:
		
							parent
							
								
									2f6925561b
								
							
						
					
					
						commit
						8a71f6d788
					
				
					 4 changed files with 60 additions and 52 deletions
				
			
		|  | @ -1,45 +0,0 @@ | ||||||
| local ok, treesitter = pcall(require, "nvim-treesitter.configs") |  | ||||||
| if not ok then |  | ||||||
|     return |  | ||||||
| end |  | ||||||
| 
 |  | ||||||
| treesitter.setup { |  | ||||||
|     highlight = { |  | ||||||
|         enable = true, |  | ||||||
|         additional_vim_regex_highlighting = { "php" }, |  | ||||||
|     }, |  | ||||||
|     indent = { |  | ||||||
|         enable = false, |  | ||||||
|     }, |  | ||||||
|     textobjects = { |  | ||||||
|         select = { |  | ||||||
|             enable = true, |  | ||||||
|             keymaps = { |  | ||||||
|                 ["af"] = "@function.outer", |  | ||||||
|                 ["if"] = "@function.inner", |  | ||||||
|                 ["ia"] = "@parameter.inner", |  | ||||||
|             }, |  | ||||||
|         }, |  | ||||||
|         swap = { |  | ||||||
|             enable = true, |  | ||||||
|             swap_next = { |  | ||||||
|                 ["<leader>@"] = "@parameter.inner", |  | ||||||
|             }, |  | ||||||
|         }, |  | ||||||
|         move = { |  | ||||||
|             enable = true, |  | ||||||
|             goto_next_start = { |  | ||||||
|                 ["]]"] = "@function.outer", |  | ||||||
|             }, |  | ||||||
|             goto_next_end = { |  | ||||||
|                 ["]["] = "@function.outer", |  | ||||||
|             }, |  | ||||||
|             goto_previous_start = { |  | ||||||
|                 ["[["] = "@function.outer", |  | ||||||
|             }, |  | ||||||
|             goto_previous_end = { |  | ||||||
|                 ["[]"] = "@function.outer", |  | ||||||
|             }, |  | ||||||
|         }, |  | ||||||
|     }, |  | ||||||
| } |  | ||||||
|  | @ -12,12 +12,6 @@ return { | ||||||
|             require "my.telescope" |             require "my.telescope" | ||||||
|         end |         end | ||||||
|     }, |     }, | ||||||
|     { |  | ||||||
|         "nvim-treesitter/nvim-treesitter", |  | ||||||
|         dependencies = { |  | ||||||
|             "nvim-treesitter/nvim-treesitter-textobjects", |  | ||||||
|         }, |  | ||||||
|     }, |  | ||||||
|     { |     { | ||||||
|         "windwp/nvim-autopairs", |         "windwp/nvim-autopairs", | ||||||
|         event = "InsertEnter", |         event = "InsertEnter", | ||||||
|  | @ -69,6 +63,8 @@ return { | ||||||
|         version = '*', |         version = '*', | ||||||
|         config = function() |         config = function() | ||||||
|             require "mini.statusline".setup() |             require "mini.statusline".setup() | ||||||
|  |             require "mini.comment".setup() | ||||||
|  |             require "mini.bufremove".setup() | ||||||
|         end |         end | ||||||
|     }, |     }, | ||||||
| } | } | ||||||
|  |  | ||||||
|  | @ -5,7 +5,7 @@ return { | ||||||
|         priority = 1000, -- make sure to load this before all the other start plugins |         priority = 1000, -- make sure to load this before all the other start plugins | ||||||
|         name = "catppuccin", |         name = "catppuccin", | ||||||
|         opts = { |         opts = { | ||||||
|             flavour = "latte", -- latte, frappe, macchiato, mocha |             flavour = "frappe", -- latte, frappe, macchiato, mocha | ||||||
|             transparent_background = false, |             transparent_background = false, | ||||||
|             dim_inactive = { |             dim_inactive = { | ||||||
|                 enabled = true, |                 enabled = true, | ||||||
|  |  | ||||||
							
								
								
									
										57
									
								
								nvim/lua/plugins/treesitter.lua
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										57
									
								
								nvim/lua/plugins/treesitter.lua
									
									
									
									
									
										Normal file
									
								
							|  | @ -0,0 +1,57 @@ | ||||||
|  | return { | ||||||
|  |     { | ||||||
|  |         "nvim-treesitter/nvim-treesitter", | ||||||
|  |         build = ":TSUpdate", | ||||||
|  |         event = { "VeryLazy" }, | ||||||
|  |         dependencies = { | ||||||
|  |             "nvim-treesitter/nvim-treesitter-textobjects", | ||||||
|  |         }, | ||||||
|  |         opts = { | ||||||
|  |             highlight = { | ||||||
|  |                 enable = true, | ||||||
|  |                 additional_vim_regex_highlighting = { "php" }, | ||||||
|  |             }, | ||||||
|  |             indent = { | ||||||
|  |                 enable = false, | ||||||
|  |             }, | ||||||
|  |             textobjects = { | ||||||
|  |                 select = { | ||||||
|  |                     enable = true, | ||||||
|  |                     keymaps = { | ||||||
|  |                         ["af"] = "@function.outer", | ||||||
|  |                         ["if"] = "@function.inner", | ||||||
|  |                         ["ia"] = "@parameter.inner", | ||||||
|  |                     }, | ||||||
|  |                 }, | ||||||
|  |                 swap = { | ||||||
|  |                     enable = true, | ||||||
|  |                     swap_next = { | ||||||
|  |                         ["<leader>@"] = "@parameter.inner", | ||||||
|  |                     }, | ||||||
|  |                 }, | ||||||
|  |                 move = { | ||||||
|  |                     enable = true, | ||||||
|  |                     goto_next_start = { | ||||||
|  |                         ["]]"] = "@function.outer", | ||||||
|  |                     }, | ||||||
|  |                     goto_next_end = { | ||||||
|  |                         ["]["] = "@function.outer", | ||||||
|  |                     }, | ||||||
|  |                     goto_previous_start = { | ||||||
|  |                         ["[["] = "@function.outer", | ||||||
|  |                     }, | ||||||
|  |                     goto_previous_end = { | ||||||
|  |                         ["[]"] = "@function.outer", | ||||||
|  |                     }, | ||||||
|  |                 }, | ||||||
|  |             }, | ||||||
|  |         }, | ||||||
|  |         config = function(_, opts) | ||||||
|  |             require("nvim-treesitter.configs").setup(opts) | ||||||
|  |         end, | ||||||
|  |     }, | ||||||
|  |     { | ||||||
|  |         "windwp/nvim-ts-autotag", | ||||||
|  |         opts = {}, | ||||||
|  |     }, | ||||||
|  | } | ||||||
		Loading…
	
		Reference in a new issue