add coq, todo-comments
Signed-off-by: Lucas Sta Maria <lucas@priime.dev>
This commit is contained in:
parent
ad10c1ea18
commit
f760d465b5
5 changed files with 78 additions and 64 deletions
|
@ -1 +1,22 @@
|
|||
vim.g.mapleader = "<Space>"
|
||||
-- map the key (sequence) to a command
|
||||
local function map(mode, lhs, rhs, opts)
|
||||
local options = { noremap = true }
|
||||
if opts then
|
||||
options = vim.tbl_extend("force", options, opts)
|
||||
end
|
||||
vim.api.nvim_set_keymap(mode, lhs, rhs, options)
|
||||
end
|
||||
|
||||
-- open terminal
|
||||
map("n", "<leader>ot", ":ToggleTerm<CR>")
|
||||
|
||||
-- exit terminal mode
|
||||
map("t", "<esc>", "<C-\\><C-n>")
|
||||
|
||||
-- open tree
|
||||
map("n", "<leader>op", ":NvimTreeToggle<CR>")
|
||||
|
||||
-- telescope
|
||||
map("n", "<leader>to", ":Telescope<CR>")
|
||||
map("n", "<leader>tf", ":Telescope find_files<CR>")
|
||||
map("n", "<leader>tg", ":Telescope live_grep<CR>")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue