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")
|
local ssh_config = vim.fs.normalize((os.getenv("XDG_CONFIG_HOME") or "~/.config") .. "/ssh/config")
|
||||||
|
|
||||||
require("remote-sshfs").setup({
|
require("remote-sshfs").setup({
|
@ -24,7 +24,7 @@ local packer_bootstrap = ensure_packer()
|
|||||||
|
|
||||||
-- Plugins
|
-- Plugins
|
||||||
|
|
||||||
local spec = function(use)
|
local function spec(use)
|
||||||
use "wbthomason/packer.nvim"
|
use "wbthomason/packer.nvim"
|
||||||
|
|
||||||
if packer_bootstrap then
|
if packer_bootstrap then
|
||||||
@ -123,6 +123,7 @@ local spec = function(use)
|
|||||||
|
|
||||||
use {
|
use {
|
||||||
"prichrd/netrw.nvim",
|
"prichrd/netrw.nvim",
|
||||||
|
disable = true,
|
||||||
config = function()
|
config = function()
|
||||||
require("netrw").setup()
|
require("netrw").setup()
|
||||||
end
|
end
|
||||||
@ -152,6 +153,13 @@ local spec = function(use)
|
|||||||
require("undotree").setup()
|
require("undotree").setup()
|
||||||
end
|
end
|
||||||
}
|
}
|
||||||
|
|
||||||
|
use {
|
||||||
|
"nvim-tree/nvim-tree.lua",
|
||||||
|
requires = {
|
||||||
|
{ "nvim-tree/nvim-web-devicons" },
|
||||||
|
}
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
||||||
@ -169,7 +177,18 @@ return require("packer").startup {
|
|||||||
config = {
|
config = {
|
||||||
display = {
|
display = {
|
||||||
open_fn = function()
|
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
|
end
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user