Skip to content

Commit

Permalink
🎨 add plugin setting to lazy folder
Browse files Browse the repository at this point in the history
  • Loading branch information
hemedani committed Jan 20, 2023
1 parent bf64a4d commit 8e9f9c7
Show file tree
Hide file tree
Showing 41 changed files with 1,617 additions and 32 deletions.
10 changes: 5 additions & 5 deletions lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,8 @@
"glow.nvim": { "branch": "main", "commit": "c88184a0bbd3e32e0274ad8c3782aba718f1053c" },
"hop.nvim": { "branch": "v1", "commit": "75f73d3959a0df7ef3642fd5138acdb1ce50fdc8" },
"indent-blankline.nvim": { "branch": "master", "commit": "c4c203c3e8a595bc333abaf168fcb10c13ed5fb7" },
"lazy.nvim": { "branch": "main", "commit": "c389ad552bd5c2050783ac6cd6e54f5fbba3c7bc" },
"lspsaga.nvim": { "branch": "main", "commit": "f4d12606719b1256445922b864fe09974e2f8cee" },
"lazy.nvim": { "branch": "main", "commit": "75dcd5741d76e09b1a41c771fbc8b010a109b5cb" },
"lspsaga.nvim": { "branch": "main", "commit": "19744ee0b3c84832d8848754c444b9069c953316" },
"markdown-preview.nvim": { "branch": "master", "commit": "02cc3874738bc0f86e4b91f09b8a0ac88aef8e96" },
"noice.nvim": { "branch": "main", "commit": "16b60455867dec069bf41699d690fa01261b4bf6" },
"nui.nvim": { "branch": "main", "commit": "b99e6cb13dc51768abc1c4c8585045a0c0459ef1" },
Expand All @@ -31,14 +31,14 @@
"nvim-cursorline": { "branch": "main", "commit": "804f0023692653b2b2368462d67d2a87056947f9" },
"nvim-dap": { "branch": "master", "commit": "c64a6627bb01eb151da96b28091797beaac09536" },
"nvim-hlslens": { "branch": "main", "commit": "fc83bd515c21c7912a6b9f97088e0492e923dfe0" },
"nvim-insx": { "branch": "main", "commit": "b6bd1f44308162fed58183cbeaf4a6829bdf39a9" },
"nvim-insx": { "branch": "main", "commit": "e82c0631160365cedb251be48364a270ecb17712" },
"nvim-lspconfig": { "branch": "master", "commit": "d228bcf7cd94611929482a09e114a42c41fe81a8" },
"nvim-notify": { "branch": "master", "commit": "bdd647f61a05c9b8a57c83b78341a0690e9c29d7" },
"nvim-regexplainer": { "branch": "main", "commit": "dddc9ff5f9837b02c3e07ee30b833bc39a0b6759" },
"nvim-snippy": { "branch": "master", "commit": "97df9b3e7da6f9a7325cb5c32649dddc48bb1630" },
"nvim-spectre": { "branch": "master", "commit": "24275beae382e6bd0180b3064cf5729548641a02" },
"nvim-tree.lua": { "branch": "master", "commit": "e8a89db1bbc06510a76fc935754b4e99a3e5e8a7" },
"nvim-treesitter": { "branch": "master", "commit": "622baacdc1b22cdfd73bc98c07bb5654a090bcac" },
"nvim-treesitter": { "branch": "master", "commit": "c9615952e71397cec4cf89a9a0db0fb9c491a5e1" },
"nvim-treesitter-context": { "branch": "master", "commit": "cacee4828152dd3a83736169ae61bbcd29a3d213" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "2fb97bd6c53d78517d2022a0b84422c18ce5686e" },
"nvim-ts-autotag": { "branch": "main", "commit": "fdefe46c6807441460f11f11a167a2baf8e4534b" },
Expand All @@ -57,7 +57,7 @@
"stabilize.nvim": { "branch": "master", "commit": "34069870a8e72632c5447188e638e1c6bfebc353" },
"telescope.nvim": { "branch": "master", "commit": "2f32775405f6706348b71d0bb8a15a22852a61e4" },
"tokyonight.nvim": { "branch": "main", "commit": "4071f7fa984859c5de7a1fd27069b99c3a0d802a" },
"trouble.nvim": { "branch": "main", "commit": "83ec606e7065adf134d17f4af6bae510e3c491c1" },
"trouble.nvim": { "branch": "main", "commit": "b2a0afac2c319a481f0f0318963a74d672ba5766" },
"twilight.nvim": { "branch": "main", "commit": "8bb7fa7b918baab1ca81b977102ddb54afa63512" },
"vim-fugitive": { "branch": "master", "commit": "2febbe1f00be04f16daa6464cb39214a8566ec4b" },
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/alpha.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"goolord/alpha-nvim",
config = function()
require("packer.settings.alpha")
require("lazy.settings.alpha")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/autopairs.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"windwp/nvim-autopairs",
config = function()
require("packer.settings.autopairs")
require("lazy.settings.autopairs")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/blankline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"lukas-reineke/indent-blankline.nvim",
config = function()
require("packer.settings.blankline")
require("lazy.settings.blankline")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/bufferline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local M = {
"akinsho/nvim-bufferline.lua",
dependencies = { "kyazdani42/nvim-web-devicons" },
config = function()
require("bufferline").setup(require("packer.settings.bufferline"))
require("bufferline").setup(require("lazy.settings.bufferline"))
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/cmp.lua
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ local M = {

-- event = "InsertEnter",
config = function()
require("packer.settings.cmp")
require("lazy.settings.cmp")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/comment.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"numToStr/Comment.nvim",
config = function()
require("packer.settings.ts-comment")
require("lazy.settings.ts-comment")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/escap.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"max397574/better-escape.nvim",
config = function()
require("packer.settings.escape")
require("lazy.settings.escape")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/formatter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"mhartington/formatter.nvim",
config = function()
require("packer.settings.format")
require("lazy.settings.format")
end,
}

Expand Down
8 changes: 0 additions & 8 deletions lua/lazy/config/packer.lua

This file was deleted.

2 changes: 1 addition & 1 deletion lua/lazy/config/rainbow.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"p00f/nvim-ts-rainbow",
config = function()
require("packer.settings.rainbow")
require("lazy.settings.rainbow")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/renamer.lua
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ local M = {
branch = "master",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("packer.settings.renamer")
require("lazy.settings.renamer")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/rest.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ local M = {
"NTBBloodbath/rest.nvim",
dependencies = { "nvim-lua/plenary.nvim" },
config = function()
require("packer.settings.rest")
require("lazy.settings.rest")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/rust.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"simrat39/rust-tools.nvim",
config = function()
require("packer.settings.rust")
require("lazy.settings.rust")
end,
}

Expand Down
4 changes: 2 additions & 2 deletions lua/lazy/config/tree.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

local M = {
"kyazdani42/nvim-tree.lua",
dependencies ={ "kyazdani42/nvim-web-devicons"},
dependencies = { "kyazdani42/nvim-web-devicons" },
config = function()
require("packer.settings.tree")
require("lazy.settings.tree")
end,
}

Expand Down
4 changes: 2 additions & 2 deletions lua/lazy/config/treesitter.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,9 +3,9 @@

local M = {
"nvim-treesitter/nvim-treesitter",
build= ":TSUpdate",
build = ":TSUpdate",
config = function()
require("packer.settings.treesitter")
require("lazy.settings.treesitter")
end,
}

Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/which-key.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"folke/which-key.nvim",
config = function()
local myWKConfig = require("packer.settings.which-key")
local myWKConfig = require("lazy.settings.which-key")
local wk = require("which-key")
wk.setup({
myWKConfig.settings,
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/windline.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"windwp/windline.nvim",
config = function()
require("packer.settings.windline")
require("lazy.settings.windline")
-- require("windline").add_status(require("spectre.state_utils").status_line())
end,
}
Expand Down
2 changes: 1 addition & 1 deletion lua/lazy/config/winshift.lua
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
local M = {
"sindrets/winshift.nvim",
config = function()
require("packer.settings.winshift")
require("lazy.settings.winshift")
end,
}

Expand Down
56 changes: 56 additions & 0 deletions lua/lazy/settings/alpha.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,56 @@
local alpha = require("alpha")
local dashboard = require("alpha.themes.dashboard")

-- Set header
dashboard.section.header.val = {
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⣿⣿⢳⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢧⣿⡿⣸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠁⣿⡏⠸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠸⣿⡇⢹⣿⣿⣿⣿⣿⣿⣿⣿⢻⢿⣿⡿⣿⣿⡇⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠀⠸⣇⠀⠹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣯⠀⢻⡇⠈⢿⣿⣿⣿⣿⣿⣿⣿⣬⣬⣾⠃⣿⣿⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣇⠀⠹⣆⠀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡄⠀⢻⡄⠈⢿⣿⣿⣿⣿⣿⣿⡇⣿⣿⠀⢿⣿⡀⠈⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣆⠀⢹⡆⠀⢻⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀⠈⢷⡀⠈⢿⣿⣿⣿⣿⣿⠀⣿⣿⡀⠈⢿⣷⡀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⡿⣛⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣘⣉⣸⣿⣿⡄⠀⢿⡄⠀⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢻⢛⣿⣿⣷⡀⠈⣷⡀⠘⣿⣿⣿⣿⣿⠀⠘⣿⣷⡀⠈⢿⣷⠀⠘⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⡏⣾⡿⠛⠛⠿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡀⠘⣷⡀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⣫⣭⣽⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣿⣿⣿⣧⠀⢹⣧⠀⢹⣿⣿⣿⣿⣧⠀⠘⣿⣷⡀⠈⢿⣧⠀⢸⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⢻⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣧⠙⢀⣤⣤⡀⢹⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡟⢿⣿⣿⣿⣧⠀⣿⣇⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡏⡾⠟⠋⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⢿⣿⣿⣿⡆⠈⣿⡆⢸⣿⣿⣿⠿⣿⣧⠀⠹⣿⣷⠀⠘⣿⡆⠀⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡇⠸⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⡏⢀⠀⠈⠉⠀⢸⣿⣿⡿⠟⢿⣿⣿⣿⣿⡿⠛⠉⠉⠉⠛⠛⠿⢿⣿⣿⣿⣿⣿⠀⠀⠙⣿⣿⣿⠀⣿⣿⠰⢿⣿⣿⣿⡏⢻⣿⣿⣿⣿⣿⡿⠀⠠⣴⣦⡀⠈⣿⣿⣿⠿⠛⠉⠉⠛⠛⠻⠿⣿⣿⣿⣿⣿⡏⠀⠀⢻⣿⣿⣷⠀⣿⡇⣸⣿⡟⠁⡀⣸⣿⣇⠀⢻⣿⣇⠀⢻⣿⠀⡙⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠿⠿⠿⣷⡀⢻⣿⣿⣿",
"⣿⣿⡟⠙⠿⠿⠿⠟⠁⣾⣿⣷⡆⠘⠛⠛⠉⢀⣀⢠⣿⣿⣿⢋⣠⣤⣤⣤⣤⣄⡀⠀⠀⠈⠉⠙⠛⠛⠳⢄⠀⠻⠿⠛⠁⢟⡅⣾⣆⣿⣿⣿⣅⠀⠻⠿⣿⠿⠋⣰⣄⠀⠀⠉⠁⣰⣿⡟⢁⣠⣤⣤⣤⣤⣀⡀⠀⠀⠈⠉⠛⠛⠛⠷⡀⠀⠿⠿⠋⢰⣿⢧⣿⠏⣠⣾⡇⣿⣿⣿⡄⠈⢿⣿⠀⢸⣿⠀⣿⢸⠟⠉⠙⢿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⠿⠛⠋⠁⠀⢀⣀⣀⡀⢹⣧⠀⢿⣿⣿",
"⣿⣿⣿⣦⣄⣀⣀⣠⣼⣿⣿⣿⣧⣄⣠⣴⠾⣿⣇⠘⠿⣿⣿⣿⡿⠿⠿⠟⠛⠋⠁⠀⣀⣀⣀⣠⣀⣀⣰⡿⠀⣤⣤⣴⢣⢟⣾⡿⠋⠙⠻⣿⣿⡄⢀⣀⣀⣠⣴⣿⣿⣿⣶⡆⠰⢿⣿⣴⣿⣿⠿⠿⠟⠛⠋⠁⠀⣀⣀⣀⣀⣀⣀⣼⡟⢠⣤⣤⣶⣿⢫⣿⠏⣰⣿⣿⡀⣿⣿⣿⣷⠀⡀⠀⢀⣾⡿⣼⡟⠀⢠⣤⡀⠈⠻⣿⣿⣿⣿⣿⣿⣿⠿⠟⠋⠉⠀⣀⣠⣴⣶⣿⣿⣿⣿⣿⢸⣿⠆⣾⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣄⠀⣠⣿⣄⠀⠀⠀⠀⠀⠀⢀⣀⣠⣴⣾⣿⣿⣿⣿⣿⣿⡿⠋⢀⣼⣿⣿⡏⣡⣾⣿⣿⣦⣤⣾⣿⡿⢃⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⡀⠀⠀⠀⠀⠀⠀⢀⣀⣤⣴⣾⣿⣿⣿⣿⣿⣿⠿⠋⢠⣾⣿⣿⣿⣱⠟⢃⣴⣿⣿⣿⣇⠈⠉⠉⠁⢠⣿⣿⣿⠟⣽⠟⢰⡀⠀⠈⠁⢠⣄⡀⠉⠉⠉⠉⠁⠀⣀⣠⣤⣶⣿⣿⣿⣿⣿⡋⠀⢙⣿⠏⠈⢁⣴⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⡋⠀⠉⣻⣿⣿⣿⣿⣿⣿⣿⣷⣽⣻⠿⢿⣿⣿⠿⠟⠋⠁⣀⣴⣿⣿⣿⣿⡇⠹⣿⣿⣿⣿⡿⠟⠋⢀⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣮⣟⡿⠿⣿⣿⣿⠿⠟⠋⠁⣠⣴⣿⣿⣿⣿⣿⣶⣾⣿⣿⣿⣿⣿⣿⣷⣶⣶⡘⠿⠿⠿⠏⠞⢁⣠⣿⣿⣷⣶⣤⣾⣿⣿⣿⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣦⣶⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣦⣤⣀⣤⣶⣾⣿⣿⣿⣿⣿⣿⣷⡀⠀⠈⠁⠀⠀⣠⣴⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣤⣀⣀⣤⣶⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣶⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣷⣶⣶⣾⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
"⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿⣿",
}

-- Set menu
dashboard.section.buttons.val = {
dashboard.button("f", " 🎄 Find file", ":Telescope find_files<CR>"),
dashboard.button("p", " 🌳 Projects", ":Telescope projects<CR>"),
dashboard.button("r", " 🚀 Recent", ":Telescope oldfiles<CR>"),
dashboard.button("s", " 🔬 Settings", ":e $MYVIMRC | :cd %:p:h | split . | wincmd k | pwd<CR>"),
dashboard.button("q", " 🏓 Quit NVIM", ":qa<CR>"),
}

-- Set footer
-- NOTE: This is currently a feature in my fork of alpha-nvim (opened PR #21, will update snippet if added to main)
-- To see test this yourself, add the function as a dependecy in packer and uncomment the footer lines
-- ```init.lua
-- return require('packer').startup(function()
-- use 'wbthomason/packer.nvim'
-- use {
-- 'goolord/alpha-nvim', branch = 'feature/startify-fortune',
-- requires = {'BlakeJC94/alpha-nvim-fortune'},
-- config = function() require("config.alpha") end
-- }
-- end)
-- ```
-- local fortune = require("alpha.fortune")
-- dashboard.section.footer.val = fortune()

-- Send config to alpha
alpha.setup(dashboard.opts)

-- Disable folding on alpha buffer
vim.cmd([[
autocmd FileType alpha setlocal nofoldenable
]])
42 changes: 42 additions & 0 deletions lua/lazy/settings/autopairs.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
local remap = vim.api.nvim_set_keymap
local npairs = require("nvim-autopairs")
local Rule = require("nvim-autopairs.rule")

-- skip it, if you use another global object
_G.MUtils = {}

vim.g.completion_confirm_key = ""
MUtils.completion_confirm = function()
if vim.fn.pumvisible() ~= 0 then
if vim.fn.complete_info()["selected"] ~= -1 then
return vim.fn["compe#confirm"](npairs.esc("<cr>"))
else
return npairs.esc("<cr>")
end
else
return npairs.autopairs_cr()
end
end

remap("i", "<CR>", "v:lua.MUtils.completion_confirm()", { expr = true, noremap = true })

npairs.setup({
check_ts = true,
ts_config = {
lua = { "string" }, -- it will not add pair on that treesitter node
javascript = { "template_string" },
java = false, -- don't check treesitter on java
},
})

-- require("nvim-treesitter.configs").setup({
-- autopairs = { enable = true },
-- })

local ts_conds = require("nvim-autopairs.ts-conds")

-- press % => %% is only inside comment or string
npairs.add_rules({
Rule("%", "%", "lua"):with_pair(ts_conds.is_ts_node({ "string", "comment" })),
Rule("$", "$", "lua"):with_pair(ts_conds.is_not_ts_node({ "function" })),
})
39 changes: 39 additions & 0 deletions lua/lazy/settings/blankline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
-- vim.opt.termguicolors = true
vim.cmd([[highlight IndentHighlightListBlank1 guifg=#E06C75 gui=nocombine]])
vim.cmd([[highlight IndentHighlightListBlank2 guifg=#E5C07B gui=nocombine]])
vim.cmd([[highlight IndentHighlightListBlank3 guifg=#98C379 gui=nocombine]])
vim.cmd([[highlight IndentHighlightListBlank4 guifg=#56B6C2 gui=nocombine]])
vim.cmd([[highlight IndentHighlightListBlank5 guifg=#61AFEF gui=nocombine]])
vim.cmd([[highlight IndentHighlightListBlank6 guifg=#C678DD gui=nocombine]])

vim.opt.termguicolors = true
vim.cmd([[highlight IndentBlanklineIndent1 guibg=#291d29 gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent2 guibg=#1f2b28 gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent3 guibg=#2f2a3b gui=nocombine]])
vim.cmd([[highlight IndentBlanklineIndent4 guibg=#262933 gui=nocombine]])

vim.opt.list = true
vim.opt.listchars:append("space:⋅")
vim.opt.listchars:append("eol:↴")

require("indent_blankline").setup({
space_char_blankline = " ",
show_trailing_blankline_indent = true,
show_current_context = true,
show_current_context_start = true,
char_highlight_list = {
"IndentHighlightListBlank1",
"IndentHighlightListBlank2",
"IndentHighlightListBlank3",
"IndentHighlightListBlank4",
"IndentHighlightListBlank5",
"IndentHighlightListBlank6",
},

space_char_highlight_list = {
"IndentBlanklineIndent1",
"IndentBlanklineIndent2",
"IndentBlanklineIndent3",
"IndentBlanklineIndent4",
},
})
8 changes: 8 additions & 0 deletions lua/lazy/settings/bufferline.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
local M = {
options = {
numbers = "both",
number_style = "superscript", -- buffer_id at index 1, ordinal at index 2
},
}

return M
Loading

0 comments on commit 8e9f9c7

Please sign in to comment.