summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--.config/nvim/lua/plug.lua10
-rw-r--r--.config/nvim/lua/sidebars.lua2
2 files changed, 11 insertions, 1 deletions
diff --git a/.config/nvim/lua/plug.lua b/.config/nvim/lua/plug.lua
index 191637d..2b5bfd1 100644
--- a/.config/nvim/lua/plug.lua
+++ b/.config/nvim/lua/plug.lua
@@ -45,5 +45,15 @@ Plug('nvim-lua/plenary.nvim')
Plug('ThePrimeagen/harpoon')
Plug('HiPhish/rainbow-delimiters.nvim')
Plug('nvim-treesitter/nvim-treesitter', {['do'] = ':TSUpdate'})
+-- Uncomment these if you want to manage LSP servers from neovim
+ Plug('williamboman/mason.nvim')
+ Plug('williamboman/mason-lspconfig.nvim')
+-- LSP Support
+Plug('neovim/nvim-lspconfig')
+-- Autocompletion
+Plug('hrsh7th/nvim-cmp')
+Plug('hrsh7th/cmp-nvim-lsp')
+Plug('L3MON4D3/LuaSnip')
+Plug('VonHeikemen/lsp-zero.nvim', {['branch'] = 'v3.x'})
vim.call('plug#end')
diff --git a/.config/nvim/lua/sidebars.lua b/.config/nvim/lua/sidebars.lua
index 058a673..796a21d 100644
--- a/.config/nvim/lua/sidebars.lua
+++ b/.config/nvim/lua/sidebars.lua
@@ -36,4 +36,4 @@ let g:startify_session_before_save = ['call sidebar#close_all()']
vim.keymap.set('n', '<F2>', ':call sidebar#toggle("nerdtree")<CR>', { noremap = true, silent = true })
vim.keymap.set('n', '<F4>', ':make<space>-j5<space>', { noremap = true, silent = false })
vim.keymap.set('n', '<F3>', ':call sidebar#toggle("tagbar")<CR>', { noremap = true, silent = true })
-vim.keymap.set('n', '<F5>', ':call sidebar#toggle("undotree")<CR>', { noremap = true, silent = true })
+vim.keymap.set('n', '<F5>', vim.cmd.UndotreeToggle, { noremap = true, silent = true })