Rust additions and JS/TS options
This commit is contained in:
		
							parent
							
								
									d7666fd4ef
								
							
						
					
					
						commit
						6061cd08fe
					
				|  | @ -0,0 +1,7 @@ | ||||||
|  | setlocal tabstop=2 | ||||||
|  | setlocal shiftwidth=2 | ||||||
|  | setlocal expandtab | ||||||
|  | setlocal softtabstop=2 | ||||||
|  | setlocal autoindent | ||||||
|  | setlocal smartindent | ||||||
|  | setlocal cindent | ||||||
|  | @ -0,0 +1,7 @@ | ||||||
|  | setlocal tabstop=2 | ||||||
|  | setlocal shiftwidth=2 | ||||||
|  | setlocal expandtab | ||||||
|  | setlocal softtabstop=2 | ||||||
|  | setlocal autoindent | ||||||
|  | setlocal smartindent | ||||||
|  | setlocal cindent | ||||||
							
								
								
									
										49
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										49
									
								
								init.lua
								
								
								
								
							|  | @ -155,7 +155,7 @@ vim.opt.inccommand = 'split' | ||||||
| vim.opt.cursorline = true | vim.opt.cursorline = true | ||||||
| 
 | 
 | ||||||
| -- Minimal number of screen lines to keep above and below the cursor. | -- Minimal number of screen lines to keep above and below the cursor. | ||||||
| vim.opt.scrolloff = 20 | vim.opt.scrolloff = 10 | ||||||
| 
 | 
 | ||||||
| -- [[ Basic Keymaps ]] | -- [[ Basic Keymaps ]] | ||||||
| --  See `:help vim.keymap.set()` | --  See `:help vim.keymap.set()` | ||||||
|  | @ -253,6 +253,9 @@ vim.opt.laststatus = 2 | ||||||
| -- Remove the mode display since it's in the statusline | -- Remove the mode display since it's in the statusline | ||||||
| vim.opt.showmode = false | vim.opt.showmode = false | ||||||
| 
 | 
 | ||||||
|  | -- Open the terminal with <leader> t | ||||||
|  | -- vim.keymap.set('n', '<leader>[', '<cmd>terminal<CR>', { desc = 'Open [T]erminal' }) | ||||||
|  | 
 | ||||||
| -- Optional: customize colors based on your colorscheme | -- Optional: customize colors based on your colorscheme | ||||||
| -- Replace these colors with ones that match your theme | -- Replace these colors with ones that match your theme | ||||||
| vim.cmd [[ | vim.cmd [[ | ||||||
|  | @ -809,6 +812,25 @@ require('lazy').setup({ | ||||||
|     end, |     end, | ||||||
|   }, |   }, | ||||||
| 
 | 
 | ||||||
|  |   { | ||||||
|  |     'rhysd/conflict-marker.vim', | ||||||
|  |     event = 'VimEnter', | ||||||
|  |   }, | ||||||
|  | 
 | ||||||
|  |   { | ||||||
|  |     'wfxr/minimap.vim', | ||||||
|  |     event = 'VimEnter', | ||||||
|  |     config = function() | ||||||
|  |       vim.g.minimap_auto_start = 1 | ||||||
|  |       vim.g.minimap_auto_start_win_enter = 1 | ||||||
|  |       vim.g.minimap_width = 10 | ||||||
|  |       vim.g.minimap_highlight_range = 1 | ||||||
|  |       vim.g.minimap_highlight_search = 1 | ||||||
|  |       vim.g.minimap_auto_start = 1 | ||||||
|  |       vim.g.minimap_auto_start_win_enter = 1 | ||||||
|  |     end, | ||||||
|  |   }, | ||||||
|  | 
 | ||||||
|   { |   { | ||||||
|     'ThePrimeagen/refactoring.nvim', |     'ThePrimeagen/refactoring.nvim', | ||||||
|     dependencies = { |     dependencies = { | ||||||
|  | @ -1084,6 +1106,31 @@ require('lazy').setup({ | ||||||
|     --    - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context |     --    - Show your current context: https://github.com/nvim-treesitter/nvim-treesitter-context | ||||||
|     --    - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects |     --    - Treesitter + textobjects: https://github.com/nvim-treesitter/nvim-treesitter-textobjects | ||||||
|   }, |   }, | ||||||
|  |   { | ||||||
|  |     'mrcjkb/rustaceanvim', | ||||||
|  |     version = '^5', -- Recommended | ||||||
|  |     lazy = false, -- This plugin is already lazy | ||||||
|  |   }, | ||||||
|  | 
 | ||||||
|  |   { | ||||||
|  |     'voldikss/vim-floaterm', | ||||||
|  |     keys = { | ||||||
|  |       { | ||||||
|  |         '<leader>tt', | ||||||
|  |         function() | ||||||
|  |           vim.cmd 'FloatermToggle' | ||||||
|  |         end, | ||||||
|  |         mode = 'n', | ||||||
|  |         desc = '[T]oggle [T]erminal', | ||||||
|  |       }, | ||||||
|  |     }, | ||||||
|  |   }, | ||||||
|  | 
 | ||||||
|  |   { | ||||||
|  |     'windwp/nvim-autopairs', | ||||||
|  |     event = 'InsertEnter', | ||||||
|  |     config = true, | ||||||
|  |   }, | ||||||
| 
 | 
 | ||||||
|   -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the |   -- The following two comments only work if you have downloaded the kickstart repo, not just copy pasted the | ||||||
|   -- init.lua. If you want these files, they are in the repository, so you can just download them and |   -- init.lua. If you want these files, they are in the repository, so you can just download them and | ||||||
|  |  | ||||||
		Loading…
	
		Reference in New Issue