Added a filetree eat your heart out Primeagen

master
RageCage64 9 months ago
parent c2d8e81d25
commit e422f901f5

@ -0,0 +1,35 @@
require("neo-tree").setup({
close_if_last_window = true,
enable_git_status = true,
default_component_configs = {
icon = {
folder_closed = "+",
folder_open = "-",
folder_empty = "",
-- The next two settings are only a fallback, if you use nvim-web-devicons and configure default icons there
-- then these will never be used.
default = " ",
highlight = "NeoTreeFileIcon"
},
name = {
trailing_slash = false,
use_git_status_colors = true,
highlight = "NeoTreeFileName",
},
git_status = {
symbols = {
-- Change type
added = "", -- or "✚", but this is redundant info if you use git_status_colors on the name
modified = "", -- or "", but this is redundant info if you use git_status_colors on the name
deleted = "", -- this can only be used in the git_status source
renamed = "", -- this can only be used in the git_status source
-- Status type
untracked = "",
ignored = "",
unstaged = "",
staged = "",
conflict = "",
}
},
},
})

@ -48,7 +48,19 @@ return require('packer').startup(function(use)
use('editorconfig/editorconfig-vim'),
-- For centering when I'm writing documents
}
-- Document writing
use { 'smithbm2316/centerpad.nvim' }
-- Tree
use {
"nvim-neo-tree/neo-tree.nvim",
branch = "v3.x",
requires = {
"nvim-lua/plenary.nvim",
"MunifTanjim/nui.nvim",
-- "3rd/image.nvim", -- Optional image support in preview window: See `# Preview Mode` for more information
},
}
end)

@ -54,4 +54,8 @@ function WritingMode()
vim.opt.wrap = not vim.opt.wrap
end
-- Writing
vim.keymap.set('n', '<leader>z', ':lua WritingMode()<CR>')
-- Tree
vim.keymap.set("n", "<leader>nt", ":Neotree toggle<CR>")

@ -119,6 +119,16 @@ _G.packer_plugins = {
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/moonfly",
url = "https://github.com/bluz71/vim-moonfly-colors"
},
["neo-tree.nvim"] = {
loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/neo-tree.nvim",
url = "https://github.com/nvim-neo-tree/neo-tree.nvim"
},
["nui.nvim"] = {
loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/nui.nvim",
url = "https://github.com/MunifTanjim/nui.nvim"
},
["nvim-cmp"] = {
loaded = true,
path = "/home/braydonk/.local/share/nvim/site/pack/packer/start/nvim-cmp",

Loading…
Cancel
Save