diff --git a/lua/Saved/autopairs.lua b/Saved/autopairs.lua similarity index 100% rename from lua/Saved/autopairs.lua rename to Saved/autopairs.lua diff --git a/lua/Saved/bufferline.lua b/Saved/bufferline.lua similarity index 100% rename from lua/Saved/bufferline.lua rename to Saved/bufferline.lua diff --git a/lua/Saved/cmp.lua b/Saved/cmp.lua similarity index 100% rename from lua/Saved/cmp.lua rename to Saved/cmp.lua diff --git a/lua/Saved/lazy.lua b/Saved/lazy.lua similarity index 100% rename from lua/Saved/lazy.lua rename to Saved/lazy.lua diff --git a/lua/Saved/lsp/handlers.lua b/Saved/lsp/handlers.lua similarity index 100% rename from lua/Saved/lsp/handlers.lua rename to Saved/lsp/handlers.lua diff --git a/lua/Saved/lsp/init.lua b/Saved/lsp/init.lua similarity index 100% rename from lua/Saved/lsp/init.lua rename to Saved/lsp/init.lua diff --git a/lua/Saved/lsp/mason.lua b/Saved/lsp/mason.lua similarity index 100% rename from lua/Saved/lsp/mason.lua rename to Saved/lsp/mason.lua diff --git a/lua/Saved/lsp/null-ls.lua b/Saved/lsp/null-ls.lua similarity index 100% rename from lua/Saved/lsp/null-ls.lua rename to Saved/lsp/null-ls.lua diff --git a/lua/Saved/lsp/settings/jsonls.lua b/Saved/lsp/settings/jsonls.lua similarity index 100% rename from lua/Saved/lsp/settings/jsonls.lua rename to Saved/lsp/settings/jsonls.lua diff --git a/lua/Saved/lsp/settings/lua_ls.lua b/Saved/lsp/settings/lua_ls.lua similarity index 100% rename from lua/Saved/lsp/settings/lua_ls.lua rename to Saved/lsp/settings/lua_ls.lua diff --git a/lua/Saved/lsp/settings/pyright.lua b/Saved/lsp/settings/pyright.lua similarity index 100% rename from lua/Saved/lsp/settings/pyright.lua rename to Saved/lsp/settings/pyright.lua diff --git a/Saved/snacks.lua b/Saved/snacks.lua new file mode 100644 index 00000000..0a340740 --- /dev/null +++ b/Saved/snacks.lua @@ -0,0 +1,50 @@ +return { + "folke/snacks.nvim", + priority = 1000, + lazy = false, + ---@type snacks.Config + opts = { + -- your configuration comes here + -- or leave it empty to use the default settings + -- refer to the configuration section below + bigfile = { enabled = true }, + dashboard = { + preset = { + -- pick = function(cmd, opts) + -- return LazyVim.pick(cmd, opts)() + -- end, + header = [[ + ██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z + ██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z + ██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z + ██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z + ███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║ + ╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝ + ]], + -- stylua: ignore + ---@type snacks.dashboard.Item[] + keys = { + -- { icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" }, + { icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" }, + { icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" }, + { icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" }, + { icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" }, + { icon = " ", key = "s", desc = "Restore Session", section = "session" }, + { icon = " ", key = "x", desc = "Lazy Extras", action = ":LazyExtras" }, + { icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy" }, + { icon = " ", key = "q", desc = "Quit", action = ":qa" }, + }, + }, + }, + -- explorer = { enabled = true }, + -- indent = { enabled = true }, + -- input = { enabled = true }, + picker = { enabled = false }, + -- notifier = { enabled = true }, + -- quickfile = { enabled = true }, + -- scope = { enabled = true }, + -- scroll = { enabled = true }, + -- statuscolumn = { enabled = true }, + -- words = { enabled = true }, + }, +} diff --git a/lua/Saved/treesitter.lua b/Saved/treesitter.lua similarity index 100% rename from lua/Saved/treesitter.lua rename to Saved/treesitter.lua diff --git a/init.lua b/init.lua index 6a03df82..1960a058 100644 --- a/init.lua +++ b/init.lua @@ -32,3 +32,10 @@ require 'user.colorscheme' -- require 'user.autopairs' -- require 'user.nvim-tree' -- require 'user.bufferline' +vim.api.nvim_create_autocmd('TextYankPost', { + desc = 'Highlight when yanking (copying) text', + group = vim.api.nvim_create_augroup('kickstart-highlight-yank', { clear = true }), + callback = function() + vim.highlight.on_yank() + end, +}) diff --git a/lua/kickstart/health.lua b/kickstart/health.lua similarity index 100% rename from lua/kickstart/health.lua rename to kickstart/health.lua diff --git a/lua/kickstart/plugins/autopairs.lua b/kickstart/plugins/autopairs.lua similarity index 100% rename from lua/kickstart/plugins/autopairs.lua rename to kickstart/plugins/autopairs.lua diff --git a/lua/kickstart/plugins/debug.lua b/kickstart/plugins/debug.lua similarity index 100% rename from lua/kickstart/plugins/debug.lua rename to kickstart/plugins/debug.lua diff --git a/lua/kickstart/plugins/gitsigns.lua b/kickstart/plugins/gitsigns.lua similarity index 100% rename from lua/kickstart/plugins/gitsigns.lua rename to kickstart/plugins/gitsigns.lua diff --git a/lua/kickstart/plugins/indent_line.lua b/kickstart/plugins/indent_line.lua similarity index 100% rename from lua/kickstart/plugins/indent_line.lua rename to kickstart/plugins/indent_line.lua diff --git a/lua/kickstart/plugins/lint.lua b/kickstart/plugins/lint.lua similarity index 100% rename from lua/kickstart/plugins/lint.lua rename to kickstart/plugins/lint.lua diff --git a/lua/kickstart/plugins/neo-tree.lua b/kickstart/plugins/neo-tree.lua similarity index 100% rename from lua/kickstart/plugins/neo-tree.lua rename to kickstart/plugins/neo-tree.lua diff --git a/lua/plugins.lua b/lua/plugins.lua index 1472c354..30b4c7a8 100644 --- a/lua/plugins.lua +++ b/lua/plugins.lua @@ -1,5 +1,4 @@ return { - { "wbthomason/packer.nvim" }, -- Have packer manage itself { "nvim-lua/popup.nvim" }, -- An implementation of the Popup API from vim in Neovim { "nvim-lua/plenary.nvim" }, -- Useful lua functions used ny lots of plugins { "windwp/nvim-autopairs" }, -- Autopairs @@ -10,26 +9,26 @@ return { -- "lunarvim/colorschemes" -- A bunch of colorschemes you can try out { "lunarvim/darkplus.nvim" }, { "akinsho/bufferline.nvim" }, - { "moll/vim-bbye" }, - -- cmp plugins - { "hrsh7th/nvim-cmp" }, -- The completion plugin - { "hrsh7th/cmp-buffer" }, -- buffer completions - { "hrsh7th/cmp-path" }, -- path completions - { "hrsh7th/cmp-cmdline" }, -- cmdline completions - { "saadparwaiz1/cmp_luasnip" }, -- snippet completions - { "hrsh7th/cmp-nvim-lsp" }, + { "moll/vim-bbye" }, +-- cmp plugins + { "hrsh7th/nvim-cmp" }, -- The completion plugin + { "hrsh7th/cmp-buffer" }, -- buffer completions + { "hrsh7th/cmp-path" }, -- path completions + { "hrsh7th/cmp-cmdline" }, -- cmdline completions + { "saadparwaiz1/cmp_luasnip" }, -- snippet completions + { "hrsh7th/cmp-nvim-lsp" }, - -- snippets - { "L3MON4D3/LuaSnip" }, --snippet engine - { "rafamadriz/friendly-snippets" }, -- a bunch of snippets to use +-- snippets + { "L3MON4D3/LuaSnip" }, --snippet engine + { "rafamadriz/friendly-snippets" }, -- a bunch of snippets to use - -- LSP - { "neovim/nvim-lspconfig" }, -- enable LSP - { "williamboman/mason.nvim" }, -- simple to use language server installer - { "williamboman/mason-lspconfig.nvim" }, -- simple to use language server installer +-- LSP + { "neovim/nvim-lspconfig" }, -- enable LSP + { "williamboman/mason.nvim" }, -- simple to use language server installer + { "williamboman/mason-lspconfig.nvim" }, -- simple to use language server installer - -- Telescope - { "nvim-telescope/telescope-media-files.nvim" }, +-- Telescope + { "nvim-telescope/telescope-media-files.nvim" }, -- Treesitter { @@ -38,4 +37,4 @@ return { }, -- "p00f/nvim-ts-rainbow" -- "nvim-treesitter/playground" -} \ No newline at end of file +} diff --git a/lua/plugins/dashboard.lua b/lua/plugins/dashboard.lua new file mode 100644 index 00000000..c5aaeb3e --- /dev/null +++ b/lua/plugins/dashboard.lua @@ -0,0 +1,44 @@ +return { + "folke/snacks.nvim", + priority = 9999, + lazy = false, + opts = { + notifier = { enabled = true }, + dashboard = { + preset = { + pick = nil, + ---@type snacks.dashboard.Item[] + keys = { + { icon = " ", key = "f", desc = "Find File", action = ":lua Snacks.dashboard.pick('files')" }, + { icon = " ", key = "n", desc = "New File", action = ":ene | startinsert" }, + { icon = " ", key = "g", desc = "Find Text", action = ":lua Snacks.dashboard.pick('live_grep')" }, + { icon = " ", key = "r", desc = "Recent Files", action = ":lua Snacks.dashboard.pick('oldfiles')" }, + { icon = " ", key = "c", desc = "Config", action = ":lua Snacks.dashboard.pick('files', {cwd = vim.fn.stdpath('config')})" }, + { icon = " ", key = "s", desc = "Restore Session", section = "session" }, + { icon = "󰒲 ", key = "l", desc = "Lazy", action = ":Lazy", enabled = package.loaded.lazy ~= nil }, + { icon = " ", key = "q", desc = "Quit", action = ":qa" }, + }, + header = [[ +  + ████ ██████ █████ ██ + ███████████ █████  + █████████ ███████████████████ ███ ███████████ + █████████ ███ █████████████ █████ ██████████████ + █████████ ██████████ █████████ █████ █████ ████ █████ + ███████████ ███ ███ █████████ █████ █████ ████ █████ + ██████ █████████████████████ ████ █████ █████ ████ ██████ + ]], + }, + sections = { + { section = 'header' }, + { + section = "keys", + indent = 1, + padding = 1, + }, + { section = 'recent_files', icon = ' ', title = 'Recent Files', indent = 3, padding = 2 }, + { section = "startup" }, + }, + }, + }, +}