diff --git a/vim/lua/neo-tree-setup.lua b/vim/lua/neo-tree-setup.lua new file mode 100644 index 0000000..bf9b964 --- /dev/null +++ b/vim/lua/neo-tree-setup.lua @@ -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 diff --git a/vim/lua/plugins.lua b/vim/lua/plugins.lua index 510886e..a431a83 100644 --- a/vim/lua/plugins.lua +++ b/vim/lua/plugins.lua @@ -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';