map.lua (1314B)
1 -- Make CTRL-L clear echo and search 2 vim.keymap.set('n', '<C-L>', ':noh<CR>:mode<CR>', 3 { noremap = true, silent = true }) 4 5 -- Make leader+a insert one from the end of the line because semicolon 6 vim.keymap.set('n', '<leader>a', '$i', 7 { noremap = true, silent = true }) 8 -- Make leader+x delete char at the end of the line 9 vim.keymap.set('n', '<leader>x', '$x', 10 { noremap = true, silent = true }) 11 -- Make leader+f fix the spelling of the current word 12 vim.keymap.set('n', '<leader>f', '1z=', 13 { noremap = true, silent = true }) 14 -- Make leader+C open the colour scheme menu 15 vim.keymap.set('n', '<leader>C', ':Telescope colorscheme<CR>', 16 { noremap = true, silent = true }) 17 -- Make leader+F fuzzyfind files 18 vim.keymap.set('n', '<leader>F', ':Telescope find_files<CR>', 19 { noremap = true, silent = true }) 20 21 -- Make Shift-Delete do nothing (my keyboard is weird so I press it a lot) 22 vim.keymap.set('i', '<S-Del>', '', { noremap = true, silent = true }) 23 24 -- Tab completion 25 --vim.keymap.set("i", "<Tab>", "v:lua.tab_complete()", {expr = true}) 26 --vim.keymap.set("s", "<Tab>", "v:lua.tab_complete()", {expr = true}) 27 --vim.keymap.set("i", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true}) 28 --vim.keymap.set("s", "<S-Tab>", "v:lua.s_tab_complete()", {expr = true}) 29 30 -- LSP mappings in after/plugin/lsp.lua