chore: use nvim-tree/nvim-tree.lua

main
sudo pacman -Syu 2023-04-12 14:09:54 +07:00
parent 40de21bb4a
commit 459e5636ac
1 changed files with 7 additions and 3 deletions

View File

@ -53,6 +53,10 @@ vim.keymap.set("n", "<leader>gdd", ":GoDeclsDir<CR>")
-- Use plugin vim-better-whitespace -- Use plugin vim-better-whitespace
vim.g.better_whitespace_enabled = 1 vim.g.better_whitespace_enabled = 1
-- Use plugin nvim-tree.lua
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
-- Use plugin neoformat -- Use plugin neoformat
vim.g.neoformat_enabled_go = { "gofumpt" } vim.g.neoformat_enabled_go = { "gofumpt" }
vim.g.shfmt_opt = "-ci" vim.g.shfmt_opt = "-ci"
@ -107,12 +111,13 @@ require("packer").startup(function()
end, end,
}) })
-- https://github.com/kyazdani42/nvim-tree.lua -- https://github.com/nvim-tree/nvim-tree.lua
use({ use({
"kyazdani42/nvim-tree.lua", "nvim-tree/nvim-tree.lua",
config = function() config = function()
require("nvim-tree").setup({ require("nvim-tree").setup({
renderer = { renderer = {
group_empty = true,
icons = { icons = {
show = { show = {
file = false, file = false,
@ -122,7 +127,6 @@ require("packer").startup(function()
modified = false, modified = false,
}, },
}, },
group_empty = true,
}, },
}) })
end, end,