Remap leader key for ,

This commit is contained in:
pro100ton 2025-01-31 22:33:00 +03:00
parent 034fe4f764
commit a45f1d47ec
4 changed files with 11 additions and 5 deletions

View file

@ -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 -- Bootstrap lazy.nvim
local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim"
if not (vim.uv or vim.loop).fs_stat(lazypath) then 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 end
vim.opt.rtp:prepend(lazypath) 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 -- Setup lazy.nvim
require("lazy").setup({ require("lazy").setup({

1
main.py Normal file
View file

@ -0,0 +1 @@

View file

@ -5,3 +5,7 @@ set("n", "<c-j>", "<c-w><c-j>")
set("n", "<c-k>", "<c-w><c-k>") set("n", "<c-k>", "<c-w><c-k>")
set("n", "<c-l>", "<c-w><c-l>") set("n", "<c-l>", "<c-w><c-l>")
set("n", "<c-h>", "<c-w><c-h>") 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" })

View file

@ -1,7 +1,7 @@
local opt = vim.opt local opt = vim.opt
-- Command to show inline what are you trying to perform -- 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 -- Search settings to toggle "smart case" search only if 1+ uppercase char
-- persist in search line -- persist in search line