Add neovim vscode config

master
Hektor Misplon 2024-09-22 18:36:31 +02:00
parent 620a5863a3
commit ea4bb90bab
Signed by: hektor
GPG Key ID: 5151AF79E723F21C
2 changed files with 18 additions and 7 deletions

14
.config/nvim/vscode.lua Normal file
View File

@ -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', '<leader>p', '<cmd>call VSCodeNotify("workbench.action.quickOpen")<cr>')
bind('n', '<leader>f', '<cmd>call VSCodeNotify("workbench.action.findInFiles")<cr>')
bind('n', '<leader>b', '<cmd>call VSCodeNotify("workbench.action.toggleSidebarVisibility")<cr>')
bind('n', '<leader>t', '<cmd>call VSCodeNotify("workbench.action.togglePanel")<cr>')

11
.vimrc
View File

@ -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