Skip to content

Commit

Permalink
Neovim: UI tweaks
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexvZyl committed Jul 13, 2023
1 parent 0a7e13a commit 2feecec
Show file tree
Hide file tree
Showing 3 changed files with 28 additions and 15 deletions.
9 changes: 8 additions & 1 deletion .config/nvim/lua/alex/lazyload/init.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,9 @@
require 'alex.lazyload.bootstrap'
require 'alex.lazyload.plugins'

local U = require 'alex.utils'

local plugins = require 'alex.lazyload.plugins'
local opts = {
ui = { border = U.border_chars_outer_thin }
}
require('lazy').setup(plugins, opts)
18 changes: 9 additions & 9 deletions .config/nvim/lua/alex/lazyload/plugins.lua
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
local plugins = {
return {
{
'nvim-telescope/telescope.nvim',
dependencies = { 'nvim-lua/plenary.nvim', 'nvim-lua/popup.nvim' },
Expand All @@ -16,23 +16,23 @@ local plugins = {
{
'glepnir/dashboard-nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
lazy = false,
},
{ 'NvChad/nvim-colorizer.lua', event = 'VeryLazy' },
{
'nvim-lualine/lualine.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
event = 'VeryLazy',
},
{
'akinsho/bufferline.nvim',
version = '*',
dependencies = { 'nvim-tree/nvim-web-devicons' },
event = 'VeryLazy',
},
{
'folke/trouble.nvim',
dependencies = { 'nvim-tree/nvim-web-devicons' },
keys = { '<leader>d', '<leader>D' },
event = 'VeryLazy'
},
{
'folke/noice.nvim',
Expand All @@ -42,8 +42,9 @@ local plugins = {
{
'aserowy/tmux.nvim',
config = function() return require('tmux').setup() end,
event = 'VeryLazy',
},
{ 'lukas-reineke/indent-blankline.nvim' },
{ 'lukas-reineke/indent-blankline.nvim', event = 'VeryLazy' },
{ 'RRethy/vim-illuminate', event = 'VeryLazy' },
{ 'preservim/nerdcommenter', event = 'VeryLazy' },
{ 'tpope/vim-commentary', event = 'VeryLazy' },
Expand All @@ -67,13 +68,15 @@ local plugins = {
'nvim-treesitter/nvim-treesitter',
dependencies = { 'nvim-treesitter/nvim-treesitter-textobjects', 'nvim-treesitter/playground' },
build = 'TSUpdate',
event = 'VeryLazy',
},
{ 'neovim/nvim-lspconfig' },
{ 'neovim/nvim-lspconfig', event = 'VeryLazy', },
{ 'glepnir/lspsaga.nvim', event = 'VeryLazy' },
{
'L3MON4D3/LuaSnip',
dependencies = { 'rafamadriz/friendly-snippets' },
build = 'make install_jsregexp',
-- This breaks when lazyloading, not sure why...
},
{
'hrsh7th/nvim-cmp',
Expand All @@ -85,6 +88,7 @@ local plugins = {
'hrsh7th/cmp-cmdline',
'saadparwaiz1/cmp_luasnip',
},
event = 'VeryLazy',
},
{ 'lervag/vimtex', event = 'VeryLazy' },

Expand All @@ -103,7 +107,3 @@ local plugins = {
{ 'projekt0n/github-nvim-theme', lazy = true },
{ 'Shatur/neovim-ayu', lazy = true },
}

local opts = {}

require('lazy').setup(plugins, opts)
16 changes: 11 additions & 5 deletions .config/nvim/lua/alex/ui/dashboard.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,17 +15,23 @@ config.shortcut = {
group = '@string',
key = 'n',
},
{
desc = '  File/path ',
action = 'Telescope find_files find_command=rg,--hidden,--files',
group = '@string',
key = 'f',
},
{
desc = '  Update ',
action = 'Lazy sync',
group = '@string',
group = '@keyword',
key = 'u',
},
{
desc = '  File/path ',
action = 'Telescope find_files find_command=rg,--hidden,--files',
group = '@string',
key = 'f',
desc = ' 󰓅 Profile ',
action = 'Lazy profile',
group = '@keyword',
key = 'p',
},
{
desc = '  Quit ',
Expand Down

0 comments on commit 2feecec

Please sign in to comment.