From 59e7ee298127e69c8472bb6a0930c5a105f5d12e Mon Sep 17 00:00:00 2001 From: Adam <56338480+adastx@users.noreply.github.com> Date: Tue, 5 Oct 2021 21:12:16 +0200 Subject: Neovim setup ported to lua + new plugins, picom edit so focused terminal is opaque --- .config/nvim/lua/binds.lua | 27 +++++++++++++++++++++++++++ 1 file changed, 27 insertions(+) create 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 new file mode 100644 index 0000000..5782f68 --- /dev/null +++ b/.config/nvim/lua/binds.lua @@ -0,0 +1,27 @@ +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('i', ',', ',u', opts) +map('i', '.', '.u', opts) +map('i', '[', '[u', opts) +map('i', '!', '!u', opts) +map('i', '?', '?u', opts) + +map('n', 'fu', 'Telescope lsp_references', opts) +map('n', 'gd', 'Telescope lsp_definitions', 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