Add setup file for neo-tree vim plugin

This commit is contained in:
Talia 2023-06-26 15:10:27 +02:00
parent 8bb548f2c9
commit 1f04cfc15c
2 changed files with 43 additions and 3 deletions

View file

@ -0,0 +1,39 @@
return function()
require('neo-tree').setup {
filesystem = {
use_libuv_file_watcher = true;
};
default_component_configs = {
icon = {
folder_empty = "󰜌";
folder_empty_open = "󰜌";
};
git_status = {
symbols = {
renamed = "󰁕";
unstaged = "󰄱";
};
};
};
document_symbols = {
kinds = {
File = { icon = "󰈙", hl = "Tag" };
Namespace = { icon = "󰌗", hl = "Include" };
Package = { icon = "󰏖", hl = "Label" };
Class = { icon = "󰌗", hl = "Include" };
Property = { icon = "󰆧", hl = "@property" };
Enum = { icon = "󰒻", hl = "@number" };
Function = { icon = "󰊕", hl = "Function" };
String = { icon = "󰀬", hl = "String" };
Number = { icon = "󰎠", hl = "Number" };
Array = { icon = "󰅪", hl = "Type" };
Object = { icon = "󰅩", hl = "Type" };
Key = { icon = "󰌋", hl = "" };
Struct = { icon = "󰌗", hl = "Type" };
Operator = { icon = "󰆕", hl = "Operator" };
TypeParameter = { icon = "󰊄", hl = "Type" };
StaticMethod = { icon = '󰠄 ', hl = 'Function' };
}
};
}
end

View file

@ -7,7 +7,7 @@ local function use(plugins)
end end
use { use {
'neovim/nvim-lspconfig'; 'wbthomason/packer.nvim';
{ 'nvim-telescope/telescope.nvim', requires = { 'nvim-lua/plenary.nvim' } }; { 'nvim-telescope/telescope.nvim', requires = { 'nvim-lua/plenary.nvim' } };
{ 'nvim-treesitter/nvim-treesitter', { cmd = ':TSUpdate' } }; { 'nvim-treesitter/nvim-treesitter', { cmd = ':TSUpdate' } };
{ 'nvim-neo-tree/neo-tree.nvim', { 'nvim-neo-tree/neo-tree.nvim',
@ -16,7 +16,8 @@ use {
"nvim-lua/plenary.nvim", "nvim-lua/plenary.nvim",
"nvim-tree/nvim-web-devicons", -- not strictly required, but recommended "nvim-tree/nvim-web-devicons", -- not strictly required, but recommended
"MunifTanjim/nui.nvim", "MunifTanjim/nui.nvim",
} };
config = require 'neo-tree-setup';
}; };
{ 'jinh0/eyeliner.nvim', config = function() { 'jinh0/eyeliner.nvim', config = function()
require('eyeliner').setup { require('eyeliner').setup {
@ -25,9 +26,9 @@ use {
} }
end}; end};
'leafo/moonscript-vim'; 'leafo/moonscript-vim';
'neovim/nvim-lspconfig';
'pigpigyyy/Yuescript-vim'; 'pigpigyyy/Yuescript-vim';
'vim-scripts/openscad.vim'; 'vim-scripts/openscad.vim';
'wbthomason/packer.nvim';
'ziglang/zig.vim'; 'ziglang/zig.vim';
-- Colour Schemes -- Colour Schemes
'AlessandroYorba/Alduin'; 'AlessandroYorba/Alduin';