update
This commit is contained in:
		
							parent
							
								
									8ee2dbf136
								
							
						
					
					
						commit
						e3907dbd58
					
				
					 2 changed files with 6 additions and 13 deletions
				
			
		
							
								
								
									
										2
									
								
								i3config
									
									
									
									
									
								
							
							
						
						
									
										2
									
								
								i3config
									
									
									
									
									
								
							|  | @ -52,7 +52,7 @@ tiling_drag modifier titlebar | |||
| bindsym $mod+Return exec kitty | ||||
| 
 | ||||
| # kill focused window | ||||
| bindsym $mod+Shift+q [con_id="__focused__" class="^(?!thunderbird|Caprine|discord|Alacritty).*$"] kill | ||||
| bindsym $mod+Shift+q [con_id="__focused__" class="^(?!thunderbird|Caprine|discord|Spotify).*$"] kill | ||||
| 
 | ||||
| # start dmenu (a program launcher) | ||||
| # A more modern dmenu replacement is rofi: | ||||
|  |  | |||
							
								
								
									
										15
									
								
								init.lua
									
									
									
									
									
								
							
							
						
						
									
										15
									
								
								init.lua
									
									
									
									
									
								
							|  | @ -150,7 +150,6 @@ local function on_attach(client, buffer) | |||
| 	}, { prefix = "<leader>" }) | ||||
| 
 | ||||
| 	-- TODO: Register all in which-key | ||||
| 	vim.keymap.set("n", "<c-]>", vim.lsp.buf.definition, keymap_opts) | ||||
| 	vim.keymap.set("n", "gD", vim.lsp.buf.implementation, keymap_opts) | ||||
| 	vim.keymap.set("n", "<c-k>", vim.lsp.buf.signature_help, keymap_opts) | ||||
| 	vim.keymap.set("n", "1gD", vim.lsp.buf.type_definition, keymap_opts) | ||||
|  | @ -159,16 +158,6 @@ local function on_attach(client, buffer) | |||
| 	vim.keymap.set("n", "gW", vim.lsp.buf.workspace_symbol, keymap_opts) | ||||
| 	vim.keymap.set("n", "gd", vim.lsp.buf.definition, keymap_opts) | ||||
| 	vim.keymap.set("n", "ga", vim.lsp.buf.code_action, keymap_opts) | ||||
| 
 | ||||
| 	-- Show diagnostic popup on cursor hover | ||||
| 	local diag_float_grp = vim.api.nvim_create_augroup("DiagnosticFloat", { clear = true }) | ||||
| 	vim.api.nvim_create_autocmd("CursorHold", { | ||||
| 		callback = function() | ||||
| 			vim.diagnostic.open_float(nil, { focusable = false }) | ||||
| 		end, | ||||
| 		group = diag_float_grp, | ||||
| 	}) | ||||
| 
 | ||||
| 	vim.keymap.set("n", "g[", vim.diagnostic.goto_prev, keymap_opts) | ||||
| 	vim.keymap.set("n", "g]", vim.diagnostic.goto_next, keymap_opts) | ||||
| end | ||||
|  | @ -284,6 +273,10 @@ require("scope").setup({ | |||
| local telescope_builtin = require("telescope.builtin") | ||||
| 
 | ||||
| wk.register({ | ||||
| 	e = { | ||||
| 		name = "Edit", | ||||
| 		c = { "<cmd>e ~/src/dotfiles/init.lua<CR>", "Edit config" }, | ||||
| 	}, | ||||
| 	n = { | ||||
| 		name = "New", | ||||
| 		t = { "<cmd>terminal<CR>", "New Terminal" }, | ||||
|  |  | |||
		Loading…
	
		Reference in a new issue