diff --git a/init.lua b/init.lua index 42031fd4..a09e1c13 100644 --- a/init.lua +++ b/init.lua @@ -165,7 +165,7 @@ vim.keymap.set('n', '', 'nohlsearch') vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous [D]iagnostic message' }) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next [D]iagnostic message' }) vim.keymap.set('n', 'e', vim.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' }) -vim.keymap.set('n', 'q', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) +vim.keymap.set('n', 'cq', vim.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) vim.api.nvim_set_keymap('n', 'n', ':Neotree toggle', { noremap = true, silent = true }) -- Exit terminal mode in the builtin terminal with a shortcut that is a bit easier -- for people to discover. Otherwise, you normally need to press , which diff --git a/lua/custom/plugins/gui.lua b/lua/custom/plugins/gui.lua new file mode 100644 index 00000000..5cf5accf --- /dev/null +++ b/lua/custom/plugins/gui.lua @@ -0,0 +1,8 @@ +local gui = {} + +if vim.g.neovide then + vim.o.guifont = 'JetBrainsMono Nerd Font:h13' + vim.g.neovide_font_ligatures = true +end + +return gui diff --git a/lua/custom/plugins/keybindings.lua b/lua/custom/plugins/keybindings.lua index c760bc1a..8ac921cb 100644 --- a/lua/custom/plugins/keybindings.lua +++ b/lua/custom/plugins/keybindings.lua @@ -1,5 +1,6 @@ local keybinds = { vim.api.nvim_set_keymap('n', ';', ':', { noremap = true }), + vim.api.nvim_set_keymap('i', '', '', { noremap = true, silent = true }), vim.cmd 'command! QQ q!', vim.cmd 'command! Q q', vim.cmd 'command! WQ wq',