diff --git a/templates/nvim/lua/nvim-tree.lua.j2 b/templates/nvim/lua/nvim-tree.lua.j2 index 901d5dc..b29942b 100644 --- a/templates/nvim/lua/nvim-tree.lua.j2 +++ b/templates/nvim/lua/nvim-tree.lua.j2 @@ -1,6 +1,7 @@ -- {{ ansible_managed }} local nvim_tree = require('nvim-tree'); +local nvim_tree_icons = require('nvim-web-devicons'); local function my_on_attach(bufnr) local api = require('nvim-tree.api') @@ -26,18 +27,6 @@ end nvim_tree.setup { on_attach = my_on_attach, - renderer = { - icons = { - show = { - file = false, - folder = false, - modified = false, - hidden = false, - diagnostics = false, - bookmarks = false, - git = false, - folder_arrow = false - } - } - } } + +nvim_tree_icons.setup(); diff --git a/vars/main.yml b/vars/main.yml index c4e3dbf..3d4850d 100644 --- a/vars/main.yml +++ b/vars/main.yml @@ -9,6 +9,9 @@ public_dotfiles_repo: 'git@git.fudiggity.nl:sonny/dotfiles.git' neovim_plugins: - { url: 'https://github.com/nvim-tree/nvim-tree.lua', name: 'nvim-tree' } + - { + url: 'https://github.com/nvim-tree/nvim-web-devicons', name: 'nvim-tree-icons' + } - { url: 'https://github.com/neovim/nvim-lspconfig', name: 'nvim-lspconfig' } - { url: 'https://github.com/hrsh7th/nvim-cmp/', name: 'nvim-cmp' } - { url: 'https://github.com/hrsh7th/cmp-nvim-lsp/', name: 'cmp-nvim-lsp' }