From ea4bb90bab555779f067591e609255c5b8c78500 Mon Sep 17 00:00:00 2001 From: Hektor Misplon Date: Sun, 22 Sep 2024 18:36:31 +0200 Subject: [PATCH] Add neovim vscode config --- .config/nvim/vscode.lua | 14 ++++++++++++++ .vimrc | 11 ++++------- 2 files changed, 18 insertions(+), 7 deletions(-) create mode 100644 .config/nvim/vscode.lua 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