customer scrolling options and such
This commit is contained in:
parent
80ecc47399
commit
8e0048f55e
@ -9,8 +9,42 @@ map("i", "jk", "<ESC>")
|
||||
|
||||
-- map({ "n", "i", "v" }, "<C-s>", "<cmd> w <cr>")
|
||||
|
||||
local custom_telescope = require('custom_telescope')
|
||||
-- local custom_telescope = require('custom_telescope')
|
||||
|
||||
-- Add a keybinding for searching Markdown tasks
|
||||
vim.api.nvim_set_keymap('n', '<leader>mt', ':lua require("custom_telescope").search_markdown_tasks()<CR>', { noremap = true, silent = true })
|
||||
|
||||
-- Configure Telescope to scroll files with ctrl+j/k
|
||||
local actions = require('telescope.actions')
|
||||
-- local sorters = require('telescope.sorters')
|
||||
|
||||
require('telescope').setup {
|
||||
defaults = {
|
||||
mappings = {
|
||||
i = {
|
||||
["<C-j>"] = actions.move_selection_next,
|
||||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
},
|
||||
},
|
||||
}
|
||||
|
||||
-- make leader-e toggle the tree view as opposed to just setting focus
|
||||
vim.api.nvim_set_keymap('n', '<leader>e', ':NvimTreeToggle<CR>', {noremap = true, silent = true})
|
||||
|
||||
-- move the whole page without moving the cursor
|
||||
vim.api.nvim_set_keymap('n', 'J', '<C-e>', { noremap = true })
|
||||
vim.api.nvim_set_keymap('n', 'K', '<C-y>', { noremap = true })
|
||||
|
||||
-- Resize windows
|
||||
vim.api.nvim_set_keymap('n', '<Up>', '5<C-w>+', { silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<Down>', '5<C-w>-', { silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<Right>', '10<C-w>>', { silent = true })
|
||||
vim.api.nvim_set_keymap('n', '<Left>', '10<C-w><', { silent = true })
|
||||
|
||||
-- Set the tab width to 4 spaces
|
||||
vim.cmd('set tabstop=4')
|
||||
vim.cmd('set shiftwidth=4')
|
||||
vim.cmd('set expandtab')
|
||||
|
||||
vim.o.hidden = true
|
||||
|
Loading…
Reference in New Issue
Block a user