Move plugins to apt file, use consistent style, configure nvim-tree

This commit is contained in:
Ajay Singh 2023-04-13 03:48:32 -04:00
parent 3e1619ad97
commit 67ab7dd9c8
2 changed files with 23 additions and 4 deletions

View File

@ -57,6 +57,15 @@ if not vim.loop.fs_stat(lazypath) then
}
end
vim.opt.rtp:prepend(lazypath)
-- nvim-tree setup
-- disable netrw at the very start of your init.lua (strongly advised)
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- set termguicolors to enable highlight groups
vim.opt.termguicolors = true
-- [end] nvim-tree setup
-- NOTE: Here is where you install your plugins.
-- You can configure plugins using the `config` key.
@ -66,9 +75,6 @@ vim.opt.rtp:prepend(lazypath)
require('lazy').setup({
-- NOTE: First, some plugins that don't require any configuration
-- Catppuccin theme
{ "catppuccin/nvim", name = "catppuccin" },
-- Git related plugins
'tpope/vim-fugitive',
'tpope/vim-rhubarb',
@ -427,6 +433,8 @@ local servers = {
-- Setup neovim lua configuration
require('neodev').setup()
-- nvim-tree config empty setup using defaults
require("nvim-tree").setup()
-- nvim-cmp supports additional completion capabilities, so broadcast that to servers
local capabilities = vim.lsp.protocol.make_client_capabilities()
capabilities = require('cmp_nvim_lsp').default_capabilities(capabilities)

View File

@ -2,4 +2,15 @@
-- I promise not to create any merge conflicts in this directory :)
--
-- See the kickstart.nvim README for more information
return {}
return {
-- gruvbox theme
{'morhetz/gruvbox', config = function() vim.cmd.colorscheme('gruvbox') end },
-- Noctis Theme
{ 'talha-akram/noctis.nvim', name = 'noctis' },
-- Catppuccin theme
{ 'catppuccin/nvim', name = 'catppuccin' },
-- nvim-tree
'nvim-tree/nvim-tree.lua',
'nvim-tree/nvim-web-devicons',
}