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