configuring thinkpad
This commit is contained in:
		
							parent
							
								
									db4867acb9
								
							
						
					
					
						commit
						be53c9686e
					
				
							
								
								
									
										13
									
								
								init.lua
								
								
								
								
							
							
						
						
									
										13
									
								
								init.lua
								
								
								
								
							| 
						 | 
					@ -91,7 +91,7 @@ vim.g.mapleader = ' '
 | 
				
			||||||
vim.g.maplocalleader = ' '
 | 
					vim.g.maplocalleader = ' '
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Set to true if you have a Nerd Font installed and selected in the terminal
 | 
					-- Set to true if you have a Nerd Font installed and selected in the terminal
 | 
				
			||||||
vim.g.have_nerd_font = false
 | 
					vim.g.have_nerd_font = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- [[ Setting options ]]
 | 
					-- [[ Setting options ]]
 | 
				
			||||||
-- See `:help vim.opt`
 | 
					-- See `:help vim.opt`
 | 
				
			||||||
| 
						 | 
					@ -99,10 +99,10 @@ vim.g.have_nerd_font = false
 | 
				
			||||||
--  For more options, you can see `:help option-list`
 | 
					--  For more options, you can see `:help option-list`
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Make line numbers default
 | 
					-- Make line numbers default
 | 
				
			||||||
vim.opt.number = true
 | 
					--vim.opt.number = true
 | 
				
			||||||
-- You can also add relative line numbers, to help with jumping.
 | 
					-- You can also add relative line numbers, to help with jumping.
 | 
				
			||||||
--  Experiment for yourself to see if you like it!
 | 
					--  Experiment for yourself to see if you like it!
 | 
				
			||||||
-- vim.opt.relativenumber = true
 | 
					vim.opt.relativenumber = true
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Enable mouse mode, can be useful for resizing splits for example!
 | 
					-- Enable mouse mode, can be useful for resizing splits for example!
 | 
				
			||||||
vim.opt.mouse = 'a'
 | 
					vim.opt.mouse = 'a'
 | 
				
			||||||
| 
						 | 
					@ -163,6 +163,8 @@ vim.opt.scrolloff = 10
 | 
				
			||||||
--  See `:help hlsearch`
 | 
					--  See `:help hlsearch`
 | 
				
			||||||
vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
 | 
					vim.keymap.set('n', '<Esc>', '<cmd>nohlsearch<CR>')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					vim.keymap.set('i', 'kj', '<Esc>')
 | 
				
			||||||
 | 
					
 | 
				
			||||||
-- Diagnostic keymaps
 | 
					-- Diagnostic keymaps
 | 
				
			||||||
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
 | 
					vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' })
 | 
				
			||||||
 | 
					
 | 
				
			||||||
| 
						 | 
					@ -845,13 +847,14 @@ require('lazy').setup({
 | 
				
			||||||
    -- change the command in the config to whatever the name of that colorscheme is.
 | 
					    -- change the command in the config to whatever the name of that colorscheme is.
 | 
				
			||||||
    --
 | 
					    --
 | 
				
			||||||
    -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
 | 
					    -- If you want to see what colorschemes are already installed, you can use `:Telescope colorscheme`.
 | 
				
			||||||
    'folke/tokyonight.nvim',
 | 
					    'ellisonleao/gruvbox.nvim',
 | 
				
			||||||
    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.
 | 
				
			||||||
 | 
					    opts = { transparent_mode = false },
 | 
				
			||||||
    init = function()
 | 
					    init = function()
 | 
				
			||||||
      -- Load the colorscheme here.
 | 
					      -- Load the colorscheme here.
 | 
				
			||||||
      -- Like many other themes, this one has different styles, and you could load
 | 
					      -- Like many other themes, this one has different styles, and you could load
 | 
				
			||||||
      -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
 | 
					      -- any other, such as 'tokyonight-storm', 'tokyonight-moon', or 'tokyonight-day'.
 | 
				
			||||||
      vim.cmd.colorscheme 'tokyonight-night'
 | 
					      vim.cmd.colorscheme 'gruvbox'
 | 
				
			||||||
 | 
					
 | 
				
			||||||
      -- You can configure highlights by doing something like:
 | 
					      -- You can configure highlights by doing something like:
 | 
				
			||||||
      vim.cmd.hi 'Comment gui=none'
 | 
					      vim.cmd.hi 'Comment gui=none'
 | 
				
			||||||
| 
						 | 
					
 | 
				
			||||||
		Loading…
	
		Reference in New Issue