treewide: space -> leader
This commit is contained in:
parent
e72991818b
commit
6711c0711c
5 changed files with 10 additions and 6 deletions
|
@ -1,3 +1,7 @@
|
|||
-- Leader key
|
||||
vim.g.mapleader = " "
|
||||
vim.g.maplocalleader = " "
|
||||
|
||||
-- Better file reading
|
||||
vim.opt.autoread = true
|
||||
vim.opt.autowrite = true
|
||||
|
|
|
@ -11,6 +11,6 @@ return {
|
|||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<Space>a", "<cmd>Lspsaga code_action<CR>", desc = "Code Action" },
|
||||
{ "<leader>a", "<cmd>Lspsaga code_action<CR>", desc = "Code Action" },
|
||||
},
|
||||
}
|
||||
|
|
|
@ -9,6 +9,6 @@ return {
|
|||
vim.g.neoformat_enabled_nix = { "alejandra" }
|
||||
end,
|
||||
keys = {
|
||||
{ "<Space>lf", "<cmd>Neoformat<CR>", desc = "Format file" },
|
||||
{ "<leader>lf", "<cmd>Neoformat<CR>", desc = "Format file" },
|
||||
},
|
||||
}
|
||||
|
|
|
@ -10,6 +10,6 @@ return {
|
|||
vim.g.loaded_netrwPlugin = 1
|
||||
end,
|
||||
keys = {
|
||||
{ "<Space>e", "<cmd>NvimTreeFindFileToggle<CR>", desc = "File Explorer" },
|
||||
{ "<leader>e", "<cmd>NvimTreeFindFileToggle<CR>", desc = "File Explorer" },
|
||||
},
|
||||
}
|
||||
|
|
|
@ -7,8 +7,8 @@ return {
|
|||
opts = {},
|
||||
cmd = "Telescope",
|
||||
keys = {
|
||||
{ "<Space>f", "<cmd>Telescope find_files<CR>", desc = "Find files" },
|
||||
{ "<Space><Space>", "<cmd>Telescope oldfiles<CR>", desc = "Recent files" },
|
||||
{ "<Space>sg", "<cmd>Telescope live_grep<CR>", desc = "Live grep" },
|
||||
{ "<leader>f", "<cmd>Telescope find_files<CR>", desc = "Find files" },
|
||||
{ "<leader><leader>", "<cmd>Telescope oldfiles<CR>", desc = "Recent files" },
|
||||
{ "<leader>sg", "<cmd>Telescope live_grep<CR>", desc = "Live grep" },
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue