From c5d3dc7fa1c7f04f2149ab04718f542de05be2ee Mon Sep 17 00:00:00 2001 From: "jakob.stendahl" Date: Tue, 11 Oct 2022 12:26:59 +0200 Subject: Add vim config --- Common/nvim/lua/plugins.lua | 51 +++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 49 insertions(+), 2 deletions(-) mode change 100644 => 100755 Common/nvim/lua/plugins.lua (limited to 'Common/nvim/lua/plugins.lua') diff --git a/Common/nvim/lua/plugins.lua b/Common/nvim/lua/plugins.lua old mode 100644 new mode 100755 index 43f63a7..4161b4f --- a/Common/nvim/lua/plugins.lua +++ b/Common/nvim/lua/plugins.lua @@ -14,8 +14,54 @@ vim.cmd([[ ]]) return require('packer').startup(function(use) - use 'neovim/nvim-lspconfig' -- Easy LSP configuration - use 'kabouzeid/nvim-lspinstall' -- Install LSP servers on demand with :LSPInstall + use 'wbthomason/packer.nvim' + use 'lewis6991/gitsigns.nvim' + --use {'tjdevries/colorbuddy.vim', {'nvim-treesitter/nvim-treesitter', opt = true}} + use 'preservim/tagbar' + use { + 'tpope/vim-dadbod', + config = function() + vim.cmd [[ + xnoremap (DBExe) db#op_exec() + nnoremap (DBExe) db#op_exec() + nnoremap (DBExeLine) db#op_exec() . '_' + + xmap db (DBExe) + nmap db (DBExe) + omap db (DBExe) + nmap dbb (DBExeLine) + + autocmd FileType dbout setlocal nofoldenable + + if !empty(glob("~/.env.vim")) + source ~/.env.vim + endif + ]] + end, + } + use { + 'nvim-lualine/lualine.nvim', + requires = { 'kyazdani42/nvim-web-devicons', opt = true } + } + use { + 'kyazdani42/nvim-tree.lua', + requires = { 'kyazdani42/nvim-web-devicons' }, + tag = 'nightly' -- optional, updated every week. (see issue #1193) + } + use 'christoomey/vim-tmux-navigator' + use { + 'ibhagwan/fzf-lua', requires = { 'kyazdani42/nvim-web-devicons' } + } + -- terryma/vim-multiple-cursors + -- preservim/nerdcommenter + + use 'neovim/nvim-lsp' + use 'neovim/nvim-lspconfig' + --use 'kabouzeid/nvim-lspinstall' + use 'williamboman/nvim-lsp-installer' + use 'ms-jpq/coq_nvim' + + use 'mfussenegger/nvim-jdtls' -- Automatically set up your configuration after cloning packer.nvim -- Put this at the end after all plugins @@ -23,3 +69,4 @@ return require('packer').startup(function(use) require('packer').sync() end end) + -- cgit v1.2.3