new default nvim config based on LazyVim
This commit is contained in:
parent
f6f507c71a
commit
f6873678e2
6 changed files with 124 additions and 3 deletions
8
lua/plugins/disable.lua
Normal file
8
lua/plugins/disable.lua
Normal file
|
|
@ -0,0 +1,8 @@
|
|||
return {
|
||||
{ "rcarriga/nvim-notify", enabled = false },
|
||||
{ "folke/todo-comments.nvim", enabled = false },
|
||||
-- this one is the command line popup
|
||||
{ "folke/noice.nvim", enabled = false },
|
||||
{ "indent-blankline.nvim", enabled = false },
|
||||
{ "mini.indentscope", enabled = false },
|
||||
}
|
||||
20
lua/plugins/logo.lua
Normal file
20
lua/plugins/logo.lua
Normal file
|
|
@ -0,0 +1,20 @@
|
|||
-- dashboard
|
||||
return {
|
||||
"goolord/alpha-nvim",
|
||||
event = "VimEnter",
|
||||
opts = function()
|
||||
local dashboard = require("alpha.themes.dashboard")
|
||||
local logo = [[
|
||||
██╗ █████╗ ███████╗██╗ ██╗██╗ ██╗██╗███╗ ███╗ Z
|
||||
██║ ██╔══██╗╚══███╔╝╚██╗ ██╔╝██║ ██║██║████╗ ████║ Z
|
||||
██║ ███████║ ███╔╝ ╚████╔╝ ██║ ██║██║██╔████╔██║ z
|
||||
██║ ██╔══██║ ███╔╝ ╚██╔╝ ╚██╗ ██╔╝██║██║╚██╔╝██║ z
|
||||
███████╗██║ ██║███████╗ ██║ ╚████╔╝ ██║██║ ╚═╝ ██║
|
||||
╚══════╝╚═╝ ╚═╝╚══════╝ ╚═╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
|
||||
|
||||
[@ymoruhyi]
|
||||
]]
|
||||
|
||||
dashboard.section.header.val = vim.split(logo, "\n")
|
||||
end,
|
||||
}
|
||||
70
lua/plugins/neo-tree.lua
Normal file
70
lua/plugins/neo-tree.lua
Normal file
|
|
@ -0,0 +1,70 @@
|
|||
-- return {
|
||||
--
|
||||
-- -- file explorer
|
||||
-- {
|
||||
-- "nvim-neo-tree/neo-tree.nvim",
|
||||
-- cmd = "Neotree",
|
||||
-- keys = {
|
||||
-- {
|
||||
-- "<leader>fe",
|
||||
-- function()
|
||||
-- require("neo-tree.command").execute({ toggle = true, dir = require("lazyvim.util").get_root() })
|
||||
-- end,
|
||||
-- desc = "Explorer NeoTree (root dir)",
|
||||
-- },
|
||||
-- {
|
||||
-- "<leader>fE",
|
||||
-- function()
|
||||
-- require("neo-tree.command").execute({ toggle = true, dir = vim.loop.cwd() })
|
||||
-- end,
|
||||
-- desc = "Explorer NeoTree (cwd)",
|
||||
-- },
|
||||
-- { "<leader>e", "<leader>fe", desc = "Explorer NeoTree (root dir)", remap = true },
|
||||
-- { "<leader>E", "<leader>fE", desc = "Explorer NeoTree (cwd)", remap = true },
|
||||
-- },
|
||||
-- deactivate = function()
|
||||
-- vim.cmd([[Neotree close]])
|
||||
-- end,
|
||||
-- init = function()
|
||||
-- vim.g.neo_tree_remove_legacy_commands = 1
|
||||
-- if vim.fn.argc() == 1 then
|
||||
-- local stat = vim.loop.fs_stat(vim.fn.argv(0))
|
||||
-- if stat and stat.type == "directory" then
|
||||
-- require("neo-tree")
|
||||
-- end
|
||||
-- end
|
||||
-- end,
|
||||
-- opts = {
|
||||
-- enable_git_status = false,
|
||||
-- filesystem = {
|
||||
-- bind_to_cwd = false,
|
||||
-- follow_current_file = true,
|
||||
-- use_libuv_file_watcher = true,
|
||||
-- },
|
||||
-- window = {
|
||||
-- mappings = {
|
||||
-- ["<space>"] = "none",
|
||||
-- },
|
||||
-- },
|
||||
-- default_component_configs = {
|
||||
-- indent = {
|
||||
-- with_expanders = true, -- if nil and file nesting is enabled, will enable expanders
|
||||
-- expander_collapsed = "",
|
||||
-- expander_expanded = "",
|
||||
-- expander_highlight = "NeoTreeExpander",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- config = function(_, opts)
|
||||
-- require("neo-tree").setup(opts)
|
||||
-- vim.api.nvim_create_autocmd("TermClose", {
|
||||
-- pattern = "*lazygit",
|
||||
-- callback = function()
|
||||
-- if package.loaded["neo-tree.sources.git_status"] then
|
||||
-- require("neo-tree.sources.git_status").refresh()
|
||||
-- end
|
||||
-- end,
|
||||
-- })
|
||||
-- end,
|
||||
-- },
|
||||
-- }
|
||||
Loading…
Add table
Add a link
Reference in a new issue