From 916891c64d0bc7f1724b943d2d3cee2366dcc3b3 Mon Sep 17 00:00:00 2001 From: spinach <19keegandeppe@gmail.com> Date: Mon, 13 Mar 2023 18:54:42 -0400 Subject: [PATCH] vimwiki alias fix for telescope --- editors/nvim/config/init.lua | 4 ++++ editors/nvim/config/lua/fuzzy.lua | 1 - shells/zsh/zshrc | 3 ++- test.md | 0 4 files changed, 6 insertions(+), 2 deletions(-) delete mode 100644 test.md diff --git a/editors/nvim/config/init.lua b/editors/nvim/config/init.lua index daf983d..6416005 100644 --- a/editors/nvim/config/init.lua +++ b/editors/nvim/config/init.lua @@ -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 diff --git a/editors/nvim/config/lua/fuzzy.lua b/editors/nvim/config/lua/fuzzy.lua index 995e3dc..7d59515 100644 --- a/editors/nvim/config/lua/fuzzy.lua +++ b/editors/nvim/config/lua/fuzzy.lua @@ -7,5 +7,4 @@ require('telescope').setup({ }) local builtin = require('telescope.builtin') - vim.keymap.set('n','f', builtin.find_files, {}) diff --git a/shells/zsh/zshrc b/shells/zsh/zshrc index 97ee9ed..bac36ea 100644 --- a/shells/zsh/zshrc +++ b/shells/zsh/zshrc @@ -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" diff --git a/test.md b/test.md deleted file mode 100644 index e69de29..0000000