From dfe212fdf0bf414493fccb1bfbcef6f30c6cab73 Mon Sep 17 00:00:00 2001 From: srdusr Date: Mon, 24 Oct 2022 00:11:06 +0200 Subject: Resort files into different directories --- lua/user/keys.lua | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) (limited to 'lua/user/keys.lua') diff --git a/lua/user/keys.lua b/lua/user/keys.lua index 1a2994b..bc1f874 100644 --- a/lua/user/keys.lua +++ b/lua/user/keys.lua @@ -26,7 +26,7 @@ vim.g.mapleader = ";" --vim.g.maplocalleader = ";" -- "jj" to exit insert-mode -map("i", "jj", "") +map("i", "kk", "") -- save quickly --map("n", ";w", ":w", d("Save buffer")) @@ -40,16 +40,17 @@ map("i", "jj", "") --vim.api.nvim_set_keymap("n", "", "lua ReloadConfig()", { noremap = true, silent = false }) map("n", "", "luafile ~/.config/nvim/init.lua", print ("Nvim configuration reloaded")) --- + +map("n", "tc", ":lua require('user.utils').toggle_completion()") -- vim.notify("Nvim configuration reloaded!", vim.log.levels.INFO) --vim.api.nvim_set_keymap('n', 'qr', ':lua require("plugins.telescope").reload()', { noremap = true, silent = true }) --Easier split navigations, just ctrl-j instead of ctrl-w then j ---map("n", "", "") ---map("n", "", "") ---map("n", "", "") ---map("n", "", "") +map("n", "", "") +map("n", "", "") +map("n", "", "") +map("n", "", "") -- Combine buffers list with buffer name map("n", "b", ":buffers:buffer") @@ -151,12 +152,12 @@ map("v", "p", '"_dP') -- Paste end of line --map("n", ",", "$p") -vim.cmd([[ - nmap , $p -]]) +--vim.cmd([[ +-- nmap , $p +--]]) -- Select entire buffer -map("v", "", "ggG") +--map("v", "", "ggG") -- Delete without changing the registers --map('n', 'x', '"_x') @@ -349,8 +350,8 @@ vim.cmd([[ --EasyAlign /--/ --:'<,'>Tabularize /-- -map("n", ",", ":hide") -map("n", ".", ":unhide") +--map("n", ",", ":hide") +--map("n", ".", ":unhide") --" Clean trailing whitespace --nnoremap ww mz:%s/\s\+$//:let @/=''`z -- cgit v1.2.3