Skip to content

Commit

Permalink
neovim: Add command to split window vertically
Browse files Browse the repository at this point in the history
  • Loading branch information
juanibiapina committed Dec 27, 2024
1 parent 2e8e70e commit 6fd810b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions dotfiles/nvim/.config/nvim/lua/shortcuts.lua
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,10 @@ end
-- trigger completions
vim.api.nvim_set_keymap('i', '<C-n>', 'pumvisible() ? "\\<C-n>" : "\\<Cmd>lua require(\'cmp\').complete()<CR>"', {expr = true, noremap = true, silent = true})

-- CTRL+W extensions
map('<C-w>n', ':rightbelow vnew<CR>', 'Split window vertically')

-- Enter key for following Obsidian style links in Markdown files
map('<CR>', '<Plug>GorgOpenFileForCurrentLine', 'Digital Garden follow link', { filetype = 'markdown' })

-- a: arguments
Expand Down

0 comments on commit 6fd810b

Please sign in to comment.