Remap leader key for ,
This commit is contained in:
parent
034fe4f764
commit
a45f1d47ec
4 changed files with 11 additions and 5 deletions
9
init.lua
9
init.lua
|
@ -1,3 +1,8 @@
|
|||
-- Making leader (<Leader>) key to space
|
||||
vim.g.mapleader = ","
|
||||
-- Making local leader (<LocalLeader>) key to backslash
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Bootstrap lazy.nvim
|
||||
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
|
||||
if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
||||
|
@ -15,10 +20,6 @@ if not (vim.uv or vim.loop).fs_stat(lazypath) then
|
|||
end
|
||||
vim.opt.rtp:prepend(lazypath)
|
||||
|
||||
-- Making leader (<Leader>) key to space
|
||||
vim.g.mapleader = " "
|
||||
-- Making local leader (<LocalLeader>) key to backslash
|
||||
vim.g.maplocalleader = "\\"
|
||||
|
||||
-- Setup lazy.nvim
|
||||
require("lazy").setup({
|
||||
|
|
1
main.py
Normal file
1
main.py
Normal file
|
@ -0,0 +1 @@
|
|||
|
|
@ -5,3 +5,7 @@ set("n", "<c-j>", "<c-w><c-j>")
|
|||
set("n", "<c-k>", "<c-w><c-k>")
|
||||
set("n", "<c-l>", "<c-w><c-l>")
|
||||
set("n", "<c-h>", "<c-w><c-h>")
|
||||
|
||||
-- Bindings for reloading LUA files (used when working with lua files)
|
||||
set("n", "<leader>x", "<cmd>.lua<CR>", { desc = "Execute the current lne" })
|
||||
set("n", "<leader><leader>x", "<cmd>source %<CR>", { desc = "Execute the current file" })
|
||||
|
|
|
@ -1,7 +1,7 @@
|
|||
local opt = vim.opt
|
||||
|
||||
-- Command to show inline what are you trying to perform
|
||||
opt.inccommand = "split"
|
||||
inccommand = "split"
|
||||
|
||||
-- Search settings to toggle "smart case" search only if 1+ uppercase char
|
||||
-- persist in search line
|
||||
|
|
Loading…
Reference in a new issue