Added a filetree eat your heart out Primeagen
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 = "",
|
||||||
|
}
|
||||||
|
},
|
||||||
|
},
|
||||||
|
})
|
@ -1,54 +1,66 @@
|
|||||||
vim.cmd [[packadd packer.nvim]]
|
vim.cmd [[packadd packer.nvim]]
|
||||||
|
|
||||||
return require('packer').startup(function(use)
|
return require('packer').startup(function(use)
|
||||||
use 'wbthomason/packer.nvim'
|
use 'wbthomason/packer.nvim'
|
||||||
|
|
||||||
-- Navigation
|
-- Navigation
|
||||||
use {
|
use {
|
||||||
'nvim-telescope/telescope.nvim', tag = '0.1.5',
|
'nvim-telescope/telescope.nvim', tag = '0.1.5',
|
||||||
-- or , branch = '0.1.x',
|
-- or , branch = '0.1.x',
|
||||||
requires = { { 'nvim-lua/plenary.nvim' } }
|
requires = { { 'nvim-lua/plenary.nvim' } }
|
||||||
}
|
}
|
||||||
|
|
||||||
-- Colours
|
-- Colours
|
||||||
use('ellisonleao/gruvbox.nvim')
|
use('ellisonleao/gruvbox.nvim')
|
||||||
use({ 'rose-pine/neovim', as = 'rose-pine' })
|
use({ 'rose-pine/neovim', as = 'rose-pine' })
|
||||||
use({ 'bluz71/vim-moonfly-colors', as = 'moonfly' })
|
use({ 'bluz71/vim-moonfly-colors', as = 'moonfly' })
|
||||||
|
|
||||||
-- Treesitter
|
-- Treesitter
|
||||||
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
|
use('nvim-treesitter/nvim-treesitter', { run = ':TSUpdate' })
|
||||||
use('nvim-treesitter/playground')
|
use('nvim-treesitter/playground')
|
||||||
|
|
||||||
-- Editing
|
-- Editing
|
||||||
use('mbbill/undotree')
|
use('mbbill/undotree')
|
||||||
use('tpope/vim-surround')
|
use('tpope/vim-surround')
|
||||||
use('tpope/vim-commentary')
|
use('tpope/vim-commentary')
|
||||||
|
|
||||||
-- LSP
|
-- LSP
|
||||||
use {
|
use {
|
||||||
'VonHeikemen/lsp-zero.nvim',
|
'VonHeikemen/lsp-zero.nvim',
|
||||||
branch = 'v2.x',
|
branch = 'v2.x',
|
||||||
requires = {
|
requires = {
|
||||||
-- LSP Support
|
-- LSP Support
|
||||||
{ 'neovim/nvim-lspconfig' }, -- Required
|
{ 'neovim/nvim-lspconfig' }, -- Required
|
||||||
{
|
{
|
||||||
-- Optional
|
-- Optional
|
||||||
'williamboman/mason.nvim',
|
'williamboman/mason.nvim',
|
||||||
run = function()
|
run = function()
|
||||||
vim.cmd [[MasonUpdate]]
|
vim.cmd [[MasonUpdate]]
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
|
{ 'williamboman/mason-lspconfig.nvim' }, -- Optional
|
||||||
|
|
||||||
-- Autocompletion
|
-- Autocompletion
|
||||||
{ 'hrsh7th/nvim-cmp' }, -- Required
|
{ 'hrsh7th/nvim-cmp' }, -- Required
|
||||||
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
|
{ 'hrsh7th/cmp-nvim-lsp' }, -- Required
|
||||||
{ 'L3MON4D3/LuaSnip' }, -- Required
|
{ 'L3MON4D3/LuaSnip' }, -- Required
|
||||||
},
|
},
|
||||||
|
|
||||||
use('editorconfig/editorconfig-vim'),
|
use('editorconfig/editorconfig-vim'),
|
||||||
|
|
||||||
-- For centering when I'm writing documents
|
}
|
||||||
use { 'smithbm2316/centerpad.nvim' }
|
|
||||||
}
|
-- 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)
|
end)
|
||||||
|
Loading…
Reference in New Issue