From fe8277103710df9c3aa1da962b50858204a6df08 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Thu, 8 Apr 2021 11:12:23 +0530 Subject: [PATCH] mapping for toggling line number --- README.md | 3 ++- lua/mappings/lua.lua | 3 +++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 5e51330..c41dbec 100644 --- a/README.md +++ b/README.md @@ -123,7 +123,7 @@ nvim-base16 doesnt even take time to load unlike base16-vim which was eating hal # Clone my setup - - Install neovim-nightly , also use a nerdfont on your terminal. -- run the install.sh (this might work only on nix systems) and open neovim , do :PackerInstall +- run the install.sh (this might work only on nix systems) and open neovim , do :PackerInstall - or do it manually : - Install packer.nvim @@ -159,6 +159,7 @@ I'd install it first and add its setup line : - Ctrl l Open terminal vertically over right - Ctrl x Open terminal horizontally below the current window - Ctrl n toggle neovim tree +- Shift n toggle line number - Ctrl a copies everything in the current file - select any text + y copies the selected text - leader + f b open all buffers , with telescope diff --git a/lua/mappings/lua.lua b/lua/mappings/lua.lua index aa3b5df..bd56831 100644 --- a/lua/mappings/lua.lua +++ b/lua/mappings/lua.lua @@ -15,3 +15,6 @@ map("n", "", [[ split term://bash | resize 10 ]], opt) -- open ter -- COPY EVERYTHING -- map("n", "", [[ %y+]], opt) + +-- toggle line number +map("n", "", [[ set nu! ]], opt)