diff --git a/.config/nvim/vscode.lua b/.config/nvim/vscode.lua new file mode 100644 index 0000000..0994efe --- /dev/null +++ b/.config/nvim/vscode.lua @@ -0,0 +1,14 @@ +local cmd = vim.cmd +local bind = vim.keymap.set + +cmd([[ +source ~/.vim/init/base.vim +source ~/.vim/init/mappings.vim +]]) + +require("keymaps") + +bind('n', 'p', 'call VSCodeNotify("workbench.action.quickOpen")') +bind('n', 'f', 'call VSCodeNotify("workbench.action.findInFiles")') +bind('n', 'b', 'call VSCodeNotify("workbench.action.toggleSidebarVisibility")') +bind('n', 't', 'call VSCodeNotify("workbench.action.togglePanel")') diff --git a/.vimrc b/.vimrc index c427b07..e67cfb4 100644 --- a/.vimrc +++ b/.vimrc @@ -1,7 +1,4 @@ -source .vim/init/base.vim -source .vim/init/mappings.vim - -if !exists('g:vscode') - source .vim/init/plugins.vim - source .vim/init/colors.vim -endif +source ~/.vim/init/base.vim +source ~/.vim/init/mappings.vim +source ~/.vim/init/plugins.vim +source ~/.vim/init/colors.vim