|
|
|
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, {})
|
|
|
|
|
|
|
|
-- 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'
|