From 4af84af3b020e9931b456c71a74d88944119d077 Mon Sep 17 00:00:00 2001 From: Charles Cabergs Date: Sat, 6 Nov 2021 17:44:06 +0100 Subject: Added neovim clangd language server, Added telescope for help and commands --- config/nvim/lua/mappings.lua | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'config/nvim/lua/mappings.lua') diff --git a/config/nvim/lua/mappings.lua b/config/nvim/lua/mappings.lua index ef6d8d6..0172aa4 100644 --- a/config/nvim/lua/mappings.lua +++ b/config/nvim/lua/mappings.lua @@ -1,18 +1,18 @@ local map = vim.api.nvim_set_keymap map('', 'Y', 'y$', {}) -- 'Y' yank to the end of the line -map('i', 'kj', '', {}) -- kj to exit insert mode +map('i', 'kj', '', {}) -- kj to exit insert mode map('', 'Q', '', {}) -- remove visual mode keybinding -map('n', 'sc', ':source $MYVIMRC', {}) -- source vimrc -map('n', ';', 'mqA;`q', {}) -- put semicolon at the end of line +map('n', 'sc', 'source $MYVIMRC', {}) -- source vimrc +map('n', ';', 'mqA;`q', {}) -- put semicolon at the end of line map('n', 'cu', 'ct_', {}) -- common change until -- split navigation -map('n', '', '', {}) -map('n', '', '', {}) -map('n', '', '', {}) -map('n', '', '', {}) -map('n', 's=', '=', {}) +map('n', '', '', {}) +map('n', '', '', {}) +map('n', '', '', {}) +map('n', '', '', {}) +map('n', 's=', '=', {}) -- search with very magic map('n', ' /', '/\v', {}) @@ -44,13 +44,14 @@ map('c', '', '', {}) -- pluggins -- -- eazy-align -map('x', 'ga', ':EasyAlign', {}) -map('n', 'ga', ':EasyAlign', {}) +map('x', 'ga', 'EasyAlign', {}) +map('n', 'ga', 'EasyAlign', {}) -- nnoremap l :SidewaysRight -- nnoremap h :SidewaysLeft -- nnoremap w :ArgWrap -- nnoremap ss :setlocal spell! -map('n', '', ':Telescope git_files', {}) -map('n', '', ':Telescope help_tags', {}) +map('n', '', 'Telescope git_files', {}) +map('n', '', 'Telescope help_tags', {}) +map('n', ';', 'Telescope commands', {}) -- cgit