From a429e351263d07e9d032cd9d5e820c675b790d9b Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Sat, 12 Mar 2022 17:38:32 +0100 Subject: nvim: better lazy loading --- .config/nvim/lua/binds.lua | 50 ---------------------------------------------- 1 file changed, 50 deletions(-) delete mode 100644 .config/nvim/lua/binds.lua (limited to '.config/nvim/lua/binds.lua') diff --git a/.config/nvim/lua/binds.lua b/.config/nvim/lua/binds.lua deleted file mode 100644 index 7b5d3fe..0000000 --- a/.config/nvim/lua/binds.lua +++ /dev/null @@ -1,50 +0,0 @@ -vim.g.mapleader = ' ' -vim.b.mapleader = ' ' - -local map = vim.api.nvim_set_keymap -local opts = { noremap = true, silent = true } - -map('', 'Y', 'y$', opts) -map('n', '', ':nohl', opts) -map('n', 'n', 'nzzzv', opts) -map('n', 'N', 'Nzzzv', opts) --- map('i', 'kj', '', opts) -map('t', 'kj', '', { noremap = true }) - -map('i', ',', ',u', opts) -map('i', '.', '.u', opts) -map('i', '[', '[u', opts) -map('i', '!', '!u', opts) -map('i', '?', '?u', opts) - -map('v', 'J', ":m '>+1gv=gv", opts) -map('v', 'K', ":m '<-2gv=gv", opts) - -map('n', 'h', ':wincmd h', opts) -map('n', 'j', ':wincmd j', opts) -map('n', 'k', ':wincmd k', opts) -map('n', 'l', ':wincmd l', opts) -map('n', '', ':wincmd h', opts) -map('n', '', ':wincmd j', opts) -map('n', '', ':wincmd k', opts) -map('n', '', ':wincmd l', opts) - -map('n', 'p', 'Telescope find_files', opts) -map('n', 'P', 'Telescope file_browser hidden=true', opts) -map('n', 'fg', 'Telescope live_grep', opts) -map('n', 'fb', 'Telescope buffers', opts) -map('n', 'fh', 'Telescope help_tags', opts) - -map('n', 'gd', 'Telescope lsp_definitions', opts) -map('n', 'gD', 'Telescope lsp_declarations', opts) -map('n', 'gr', 'Telescope lsp_references', opts) -map('n', 'gi', 'Telescope lsp_implementations', opts) -map('n', 'K', 'lua vim.lsp.buf.hover()', opts) -map('n', '', 'lua vim.lsp.buf.signature_help()', opts) -map('n', 'rn', 'lua vim.lsp.buf.rename()', opts) -map('n', 'xd', 'Telescope lsp_document_diagnostics', opts) -map('n', 'xD', 'Telescope lsp_workspace_diagnostics', opts) -map('n', 'xn', 'lua vim.lsp.diagnostic.goto_next()', opts) -map('n', 'xN', 'lua vim.lsp.diagnostic.goto_prev()', opts) -map('n', 'xx', 'Telescope lsp_code_actions', opts) -map('n', 'xX', 'Telescope lsp_range_code_actions', opts) -- cgit v1.2.3-70-g09d2