diff options
author | christianchiarulli <[email protected]> | 2021-06-28 00:04:29 -0400 |
---|---|---|
committer | christianchiarulli <[email protected]> | 2021-06-28 00:04:29 -0400 |
commit | 89d3058ec8b1da7f587b74653b479c1c22c3248f (patch) | |
tree | 87b3a9fa41e7f9138f0a849c1dd2c35186c3e946 | |
parent | 3009c6e5f667a450f39a792e17182c717bb2d751 (diff) |
updates
-rw-r--r-- | init.lua | 4 | ||||
-rw-r--r-- | lua/plugins.lua | 88 |
2 files changed, 54 insertions, 38 deletions
@@ -8,11 +8,11 @@ require('keymappings') require('colorscheme') -- This plugin must be required somewhere after nvimtree. Placing it before will break navigation keymappings require('lv-galaxyline') require('lv-telescope') -require('lv-gitsigns') require('lv-treesitter') require('lv-autopairs') require('lv-which-key') + -- extras if O.extras then require('lv-rnvimr') @@ -34,7 +34,7 @@ end vim.cmd('source ' .. CONFIG_PATH .. '/vimscript/functions.vim') -- LSP -require('lsp') +--require('lsp') require('lsp.java-ls') require('lsp.angular-ls') require('lsp.bash-ls') diff --git a/lua/plugins.lua b/lua/plugins.lua index 5973bcb5..b9c32508 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -27,7 +27,7 @@ local function require_plugin(plugin) return ok, err, code end -vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua +-- vim.cmd "autocmd BufWritePost plugins.lua PackerCompile" -- Auto compile when there are changes in plugins.lua return require("packer").startup(function(use) -- Packer can manage itself as an optional plugin @@ -38,8 +38,9 @@ return require("packer").startup(function(use) "neovim/nvim-lspconfig", -- event = "BufRead", - - -- opt = true + -- config = function() + -- require("lsp").config() + -- end } use { "glepnir/lspsaga.nvim", @@ -48,26 +49,30 @@ return require("packer").startup(function(use) -- opt = true } - use {"kabouzeid/nvim-lspinstall", + use { + "kabouzeid/nvim-lspinstall", - -- opt = true + -- event = "BufRead", + -- opt = true -} + } -- Telescope - use {"nvim-lua/popup.nvim", + use { + "nvim-lua/popup.nvim" - -- opt = true + -- opt = true -} - use {"nvim-lua/plenary.nvim", + } + use { + "nvim-lua/plenary.nvim" - -- opt = true + -- opt = true -} + } use { "nvim-telescope/telescope.nvim", - -- cmd = "Telescope", + -- cmd = "Telescope", -- opt = true } @@ -79,9 +84,9 @@ return require("packer").startup(function(use) -- require_plugin("nvim-compe") require("lv-compe").config() end, - -- event = "InsertEnter", +-- event = "InsertEnter", - -- opt = true + -- opt = true } -- Treesitter @@ -89,6 +94,9 @@ return require("packer").startup(function(use) "nvim-treesitter/nvim-treesitter", -- event = "BufRead", + -- config = function() + -- require('lv-treesitter').config() + -- end, run = ":TSUpdate" } @@ -98,36 +106,37 @@ return require("packer").startup(function(use) use { "kyazdani42/nvim-tree.lua", - -- cmd = "NvimTreeToggle", + cmd = "NvimTreeToggle", config = function() -- require_plugin("lv-nvimtree") require("lv-nvimtree").config() - end, + end -- opt = true } -- use {'lukas-reineke/indent-blankline.nvim', opt=true, branch = 'lua'} - use {"lewis6991/gitsigns.nvim", - - -- event = "BufRead", + use { + "lewis6991/gitsigns.nvim", + config = function() + -- require_plugin("nvim-compe") + require("lv-gitsigns").config() + end, + -- event = "BufRead" -- opt = true } - use {"folke/which-key.nvim", + use { + "folke/which-key.nvim" -- opt = true } - use {"windwp/nvim-autopairs", - config = function() - -- require_plugin("lv-nvimtree") - require("lv-autopairs").config() - end, - + use { + "windwp/nvim-autopairs", -- event = "InsertEnter", -- opt = true @@ -140,7 +149,7 @@ return require("packer").startup(function(use) cmd = "CommentToggle", config = function() require('nvim_comment').setup() - end, + end -- opt = true } @@ -148,31 +157,38 @@ return require("packer").startup(function(use) use {"christianchiarulli/nvcode-color-schemes.vim", opt = true} -- Icons - use {"kyazdani42/nvim-web-devicons", + use { + "kyazdani42/nvim-web-devicons" -- opt = true } -- Status Line and Bufferline - use {"glepnir/galaxyline.nvim", + use { + "glepnir/galaxyline.nvim" -- opt = true } - use {"romgrk/barbar.nvim", + use { + "romgrk/barbar.nvim", config = function() -- require_plugin("barbar.nvim") - vim.api.nvim_set_keymap('n', '<TAB>', ':BufferNext<CR>', { noremap = true, silent = true }) - vim.api.nvim_set_keymap('n', '<S-TAB>', ':BufferPrevious<CR>', { noremap = true, silent = true }) - vim.api.nvim_set_keymap('n', '<S-x>', ':BufferClose<CR>', { noremap = true, silent = true }) - end, + vim.api.nvim_set_keymap('n', '<TAB>', ':BufferNext<CR>', + {noremap = true, silent = true}) + vim.api.nvim_set_keymap('n', '<S-TAB>', ':BufferPrevious<CR>', + {noremap = true, silent = true}) + vim.api.nvim_set_keymap('n', '<S-x>', ':BufferClose<CR>', + {noremap = true, silent = true}) + end -- opt = true } - use {"hrsh7th/vim-vsnip", + use { + "hrsh7th/vim-vsnip" -- opt = true |