You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

18 lines
676 B
Lua

5 months ago
local telescope = require('telescope.builtin')
local etc = require("etc")
vim.keymap.set('n', '<C-p>', etc.project_files, {})
vim.keymap.set('n', '<F2>', telescope.diagnostics, {})
vim.keymap.set('n', '<leader>o', telescope.buffers, {})
vim.keymap.set('n', '<C-k>', vim.cmd.bnext, {})
vim.keymap.set('n', '<C-j>', vim.cmd.bprev, {})
-- vim.keymap.set('n', '<leader>r', vim.lsp.buf.references, {})
vim.keymap.set('n', '<leader>r', telescope.lsp_references, {})
5 months ago
-- vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
-- vim.keymap.set("v", "K", ":m '>-2<CR>gv=gv")
-- using J to join lines doesn't move your cursor
-- vim.keymap.set("n", "J", "mzJ`z")
-- vim.keymap.set('n', '<C-k'