From b071a5fea049e6d7c2a3067b9b958a3901edda8d Mon Sep 17 00:00:00 2001 From: Eric Tiedemann Date: Mon, 27 Nov 2023 15:08:00 -0500 Subject: [PATCH] Add new vscode bindings --- lua/vscode-plugins.lua | 18 ++++++++++++++++++ vscode-init.vim | 2 +- 2 files changed, 19 insertions(+), 1 deletion(-) create mode 100644 lua/vscode-plugins.lua diff --git a/lua/vscode-plugins.lua b/lua/vscode-plugins.lua new file mode 100644 index 00000000..812f2278 --- /dev/null +++ b/lua/vscode-plugins.lua @@ -0,0 +1,18 @@ +local lazypath = vim.fn.stdpath 'data' .. '/lazy/lazy.nvim' +if not vim.loop.fs_stat(lazypath) then + vim.fn.system { + 'git', + 'clone', + '--filter=blob:none', + 'https://github.com/folke/lazy.nvim.git', + '--branch=stable', -- latest stable release + lazypath, + } +end +vim.opt.rtp:prepend(lazypath) +require('lazy').setup({ + { + 'kylechui/nvim-surround', + opts = { config = {} } + } +}) diff --git a/vscode-init.vim b/vscode-init.vim index 8e688cf5..198a06ad 100644 --- a/vscode-init.vim +++ b/vscode-init.vim @@ -1,4 +1,4 @@ -lua require('plugins') +lua require('vscode-plugins') nnoremap :noh nnoremap z.