diff options
| author | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:52:58 +0100 |
|---|---|---|
| committer | Vito G. Graffagnino <vito@graffagnino.xyz> | 2022-05-28 11:52:58 +0100 |
| commit | df55cb522dfd6b3d2cd2b734fce9d8fc1303385a (patch) | |
| tree | 2c51a56531a3dad6610fa961736f3dbaee3e8fe0 /lua/user/keymaps.lua | |
| parent | b9a2bc855bbd7a7d54c9e280ee875393e30cf1a6 (diff) | |
| parent | f671fc644de5edbeb4692df3b1b763754e22fb16 (diff) | |
Merge branch 'vgg' into 09-autopairs09-autopairs
Diffstat (limited to 'lua/user/keymaps.lua')
| -rw-r--r-- | lua/user/keymaps.lua | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/lua/user/keymaps.lua b/lua/user/keymaps.lua index fb8fdb4..c7d10c4 100644 --- a/lua/user/keymaps.lua +++ b/lua/user/keymaps.lua @@ -6,9 +6,9 @@ local term_opts = { silent = true } local keymap = vim.api.nvim_set_keymap --Remap space as leader key -keymap("", "<Space>", "<Nop>", opts) -vim.g.mapleader = " " -vim.g.maplocalleader = " " +-- keymap("", "<Space>", "<Nop>", opts) +vim.g.mapleader = "," +vim.g.maplocalleader = "," -- Modes -- normal_mode = "n", @@ -28,8 +28,8 @@ keymap("n", "<C-l>", "<C-w>l", opts) keymap("n", "<leader>e", ":Lex 30<cr>", opts) -- Resize with arrows -keymap("n", "<C-Up>", ":resize -2<CR>", opts) -keymap("n", "<C-Down>", ":resize +2<CR>", opts) +keymap("n", "<C-Up>", ":resize +2<CR>", opts) +keymap("n", "<C-Down>", ":resize -2<CR>", opts) keymap("n", "<C-Left>", ":vertical resize -2<CR>", opts) keymap("n", "<C-Right>", ":vertical resize +2<CR>", opts) @@ -37,10 +37,6 @@ keymap("n", "<C-Right>", ":vertical resize +2<CR>", opts) keymap("n", "<S-l>", ":bnext<CR>", opts) keymap("n", "<S-h>", ":bprevious<CR>", opts) --- Move text up and down -keymap("n", "<A-j>", "<Esc>:m .+1<CR>==gi", opts) -keymap("n", "<A-k>", "<Esc>:m .-2<CR>==gi", opts) - -- Insert -- -- Press jk fast to enter keymap("i", "jk", "<ESC>", opts) @@ -68,3 +64,8 @@ keymap("t", "<C-h>", "<C-\\><C-N><C-w>h", term_opts) keymap("t", "<C-j>", "<C-\\><C-N><C-w>j", term_opts) keymap("t", "<C-k>", "<C-\\><C-N><C-w>k", term_opts) keymap("t", "<C-l>", "<C-\\><C-N><C-w>l", term_opts) + +-- keymap("n", "<leader>f", "<cmd>Telescope find_files<cr>", opts) +keymap("n", "<leader>f", "<cmd>lua require'telescope.builtin'.find_files(require('telescope.themes').get_dropdown({ previewer = false }))<cr>", opts) +keymap("n", "<c-t>", "<cmd>Telescope live_grep<cr>", opts) + |
