Add nvim-tree plugin
This commit is contained in:
parent
38079d3307
commit
f513b0c18a
@ -1,3 +1,17 @@
|
||||
local nvim_tree = require("nvim-tree")
|
||||
local nvim_tree_api = require("nvim-tree.api")
|
||||
|
||||
vim.keymap.set("n", "<Leader>ft", nvim_tree_api.tree.open)
|
||||
|
||||
nvim_tree.setup({
|
||||
view = {
|
||||
float = {
|
||||
enable = true
|
||||
}
|
||||
}
|
||||
})
|
||||
|
||||
|
||||
local ssh_config = vim.fs.normalize((os.getenv("XDG_CONFIG_HOME") or "~/.config") .. "/ssh/config")
|
||||
|
||||
require("remote-sshfs").setup({
|
@ -24,7 +24,7 @@ local packer_bootstrap = ensure_packer()
|
||||
|
||||
-- Plugins
|
||||
|
||||
local spec = function(use)
|
||||
local function spec(use)
|
||||
use "wbthomason/packer.nvim"
|
||||
|
||||
if packer_bootstrap then
|
||||
@ -123,6 +123,7 @@ local spec = function(use)
|
||||
|
||||
use {
|
||||
"prichrd/netrw.nvim",
|
||||
disable = true,
|
||||
config = function()
|
||||
require("netrw").setup()
|
||||
end
|
||||
@ -152,6 +153,13 @@ local spec = function(use)
|
||||
require("undotree").setup()
|
||||
end
|
||||
}
|
||||
|
||||
use {
|
||||
"nvim-tree/nvim-tree.lua",
|
||||
requires = {
|
||||
{ "nvim-tree/nvim-web-devicons" },
|
||||
}
|
||||
}
|
||||
end
|
||||
|
||||
|
||||
@ -169,7 +177,18 @@ return require("packer").startup {
|
||||
config = {
|
||||
display = {
|
||||
open_fn = function()
|
||||
return require("packer.util").float({ border = "single" })
|
||||
return require("packer.util").float({
|
||||
border = {
|
||||
{ '╭', 'FloatBorder' },
|
||||
{ '─', 'FloatBorder' },
|
||||
{ '╮', 'FloatBorder' },
|
||||
{ '│', 'FloatBorder' },
|
||||
{ '╯', 'FloatBorder' },
|
||||
{ '─', 'FloatBorder' },
|
||||
{ '╰', 'FloatBorder' },
|
||||
{ '│', 'FloatBorder' },
|
||||
},
|
||||
})
|
||||
end
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user