nvim: add neo-tree
This commit is contained in:
parent
67126480a8
commit
c4aee638e9
@ -140,6 +140,44 @@ local plugins = {
|
||||
{ '<Leader>fg', '<cmd>Telescope live_grep<CR>' },
|
||||
}
|
||||
},
|
||||
{
|
||||
'nmac427/guess-indent.nvim',
|
||||
config = function()
|
||||
require('guess-indent').setup {}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"lukas-reineke/indent-blankline.nvim",
|
||||
config = function()
|
||||
require('indent_blankline').setup {
|
||||
char = "▏",
|
||||
char_highlight_list = { "IndentBlanklineIndent1" },
|
||||
show_trailing_blankline_indent = false,
|
||||
use_treesitter = true,
|
||||
}
|
||||
end,
|
||||
},
|
||||
{
|
||||
"nvim-neo-tree/neo-tree.nvim",
|
||||
dependencies = {
|
||||
"nvim-lua/plenary.nvim",
|
||||
"MunifTanjim/nui.nvim",
|
||||
},
|
||||
config = function()
|
||||
require("neo-tree").setup({
|
||||
close_if_last_window = true,
|
||||
filesystem = {
|
||||
hide_gitignored = true,
|
||||
hijack_netrw_behavior = "open_current",
|
||||
},
|
||||
window = {
|
||||
mappings = {
|
||||
["l"] = "open",
|
||||
}
|
||||
}
|
||||
})
|
||||
end
|
||||
},
|
||||
}
|
||||
|
||||
require("lazy").setup(
|
||||
|
||||
@ -17,7 +17,8 @@ opt.shortmess:append { s = true, I = true} -- disable startup message
|
||||
|
||||
opt.shell = 'bash'
|
||||
|
||||
opt.ttimeoutlen = 0
|
||||
opt.ttimeoutlen = 50
|
||||
opt.timeoutlen = 500
|
||||
|
||||
vim.cmd([[
|
||||
filetype plugin indent on
|
||||
@ -64,6 +65,8 @@ opt.scrolloff = 7
|
||||
|
||||
|
||||
opt.termguicolors = true
|
||||
vim.cmd [[highlight IndentBlanklineIndent1 guifg=#4E5754 gui=nocombine]]
|
||||
|
||||
opt.background = 'dark'
|
||||
|
||||
opt.backup = true
|
||||
@ -108,10 +111,7 @@ vim.cmd([[
|
||||
|
||||
|
||||
vim.g.netrw_banner = 0 -- hide banner
|
||||
vim.g.netrw_liststyle = 3 -- tree instead of plain view
|
||||
vim.g.netrw_browse_split = 0
|
||||
vim.g.netrw_winsize = 15
|
||||
vim.g.netrw_keepdir = 0
|
||||
vim.g.highlighturl_enabled = true -- highlight URLs by default
|
||||
|
||||
|
||||
-- Highlight yanked text for a while
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user