up/down between wrapped lines
This commit is contained in:
parent
d0f5db0015
commit
2ef3190380
|
@ -1,6 +1,13 @@
|
||||||
local cwdopt = '{cwd = require("userfuncs").find_project_root()}'
|
local cwdopt = '{cwd = require("userfuncs").find_project_root()}'
|
||||||
|
|
||||||
local noremap = {noremap = true}
|
local noremap = {noremap = true}
|
||||||
|
local snoremap = { noremap = true, silent = true }
|
||||||
|
|
||||||
|
-- up and down between wrapped lines
|
||||||
|
vim.api.nvim_set_keymap('', 'k', 'gk', snoremap)
|
||||||
|
vim.api.nvim_set_keymap('', 'j', 'gj', snoremap)
|
||||||
|
vim.api.nvim_set_keymap('', '<Up>', 'gk', snoremap)
|
||||||
|
vim.api.nvim_set_keymap('', '<Down>', 'gj', snoremap)
|
||||||
|
|
||||||
-- file navigation
|
-- file navigation
|
||||||
vim.api.nvim_set_keymap('n', '-', '<cmd>lua require("telescope").extensions.vinegar.file_browser()<cr>', noremap)
|
vim.api.nvim_set_keymap('n', '-', '<cmd>lua require("telescope").extensions.vinegar.file_browser()<cr>', noremap)
|
||||||
|
@ -13,10 +20,8 @@ vim.api.nvim_set_keymap('n', '<leader>gg', '<cmd>lua require("telescope.builtin"
|
||||||
vim.api.nvim_set_keymap('n', '<leader>fu', '<cmd>Telescope lsp_references<cr>', noremap)
|
vim.api.nvim_set_keymap('n', '<leader>fu', '<cmd>Telescope lsp_references<cr>', noremap)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>gd', '<cmd>Telescope lsp_definitions<cr>', noremap)
|
vim.api.nvim_set_keymap('n', '<leader>gd', '<cmd>Telescope lsp_definitions<cr>', noremap)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<cr>', noremap)
|
vim.api.nvim_set_keymap('n', '<leader>rn', '<cmd>lua vim.lsp.buf.rename()<cr>', noremap)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>dn', '<cmd>lua vim.lsp.diagnostic.goto_next()<cr>', noremap)
|
vim.api.nvim_set_keymap('n', '<leader>dn', '<cmd>lua vim.diagnostic.goto_next()<cr>', noremap)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>dN', '<cmd>lua vim.lsp.diagnostic.goto_prev()<cr>', noremap)
|
vim.api.nvim_set_keymap('n', '<leader>dN', '<cmd>lua vim.diagnostic.goto_prev()<cr>', noremap)
|
||||||
vim.api.nvim_set_keymap('n', '<leader>dd', '<cmd>Telescope lsp_document_diagnostics<cr>', noremap)
|
|
||||||
vim.api.nvim_set_keymap('n', '<leader>dD', '<cmd>Telescope lsp_workspace_diagnostics<cr>', noremap)
|
|
||||||
vim.api.nvim_set_keymap('n', '<leader>xx', '<cmd>lua vim.lsp.buf.code_action()<cr>', noremap)
|
vim.api.nvim_set_keymap('n', '<leader>xx', '<cmd>lua vim.lsp.buf.code_action()<cr>', noremap)
|
||||||
|
|
||||||
-- dadbod stuff
|
-- dadbod stuff
|
||||||
|
|
Loading…
Reference in New Issue