vimwiki alias fix for telescope

nvim
spinach 2 years ago
parent 66f5de0ffe
commit 916891c64d

@ -15,6 +15,10 @@ vim.opt.cursorline = true
vim.opt.compatible = false
-- ignores search case unless capital is used
vim.opt.smartcase = true
vim.opt.hlsearch = true
-- colorscheme and syntax settings
vim.cmd([[
syntax enable

@ -7,5 +7,4 @@ require('telescope').setup({
})
local builtin = require('telescope.builtin')
vim.keymap.set('n','<leader>f', builtin.find_files, {})

@ -159,7 +159,8 @@ export FZF_DEFAULT_OPTS='--layout=reverse --border'
#alias bat="batcat" Only needed on ubuntu/debian
# vim wiki alias
alias vimwiki="nvim $HOME/vimwiki/index.md"
alias vimwiki="nvim '+cd %:p:h' $HOME/vimwiki/index.md"
#alias vimwiki="cd $HOME/vimwiki && nvim index.md"
# yt-dlp alias for simplicity
alias yt-vid="yt-dlp -P $HOME/media/video"

Loading…
Cancel
Save