-- Switch between splits vim.keymap.set("n", "", "l") vim.keymap.set("n", "", "h") vim.keymap.set("n", "", "k") vim.keymap.set("n", "", "j") -- Escape for exiting terminal mode vim.keymap.set('t', '', '') -- move selection linewise vim.keymap.set('v', 'J', ":m '>+1gv=gv") vim.keymap.set('v', 'K', ":m '<-2gv=gv") --nmap('K', vim.lsp.buf.hover, 'Hover Documentation') --nmap('', vim.lsp.buf.signature_help, 'Signature Documentation') --nmap('gd', require('telescope.builtin').lsp_definitions, '[G]oto [D]efinition') --nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') --nmap('gI', require('telescope.builtin').lsp_implementations, '[G]oto [I]mplementation') vim.keymap.set('n', 'K', vim.lsp.buf.hover) vim.keymap.set('n', 'C-k', vim.lsp.buf.signature_help) vim.keymap.set('n', 'gd', require('telescope.builtin').lsp_definitions) vim.keymap.set('n', 'gr', require('telescope.builtin').lsp_references) vim.keymap.set('n', 'gI', require('telescope.builtin').lsp_implementations) -- Neovide if vim.g.neovide then vim.g.neovide_cursor_vfx_mode = "ripple" vim.g.neovide_cursor_vfx_particle_density = 30.0 vim.g.neovide_transparency = 1 local font_name = "ComicShannsMono Nerd Font Mono:h" local font_size = 20 vim.o.guifont = font_name .. tostring(font_size) vim.g.neovide_profiler = false vim.g.neovide_hide_mouse_when_typing = true -- Fullscreen keymapping vim.keymap.set("n", "FF", function() if vim.g.neovide_fullscreen then vim.g.neovide_fullscreen = false else vim.g.neovide_fullscreen = true end end) vim.keymap.set("n", "", function() font_size = font_size + 1 vim.o.guifont = font_name .. tostring(font_size) end) vim.keymap.set("n", "", function() if font_size >= 1 then font_size = font_size - 1 vim.o.guifont = font_name .. tostring(font_size) end end) end