18 lines
591 B
Lua
18 lines
591 B
Lua
local opts = { noremap = true, silent = true }
|
|
local keymap = vim.api.nvim_set_keymap
|
|
|
|
vim.g.mapleader = ' '
|
|
vim.g.maplocalleader = ' '
|
|
|
|
keymap('', '<leader>', '<Nop>', opts)
|
|
keymap('n', '<leader>e', ':NvimTreeToggle %<CR>', opts)
|
|
|
|
local builtin = require('telescope.builtin')
|
|
local keymap = vim.keymap.set
|
|
|
|
keymap('n', '<leader>ff', builtin.find_files, {})
|
|
keymap('n', '<leader>fg', builtin.live_grep, {})
|
|
keymap('n', '<leader>fb', builtin.buffers, {})
|
|
keymap('n', '<leader>fh', builtin.help_tags, {})
|
|
keymap('n', '<leader>u', vim.cmd.UndotreeToggle)
|
|
keymap('n', '<leader>gs', vim.cmd.Git)
|