From c4aee638e95d8cb82edadff270084eb2e6cc6dbe Mon Sep 17 00:00:00 2001 From: TheK4n Date: Sun, 12 Mar 2023 21:56:30 +0300 Subject: [PATCH] nvim: add neo-tree --- home/user/.config/nvim/lua/base/lazy.lua | 38 +++++++++++++++++++++ home/user/.config/nvim/lua/base/options.lua | 10 +++--- 2 files changed, 43 insertions(+), 5 deletions(-) diff --git a/home/user/.config/nvim/lua/base/lazy.lua b/home/user/.config/nvim/lua/base/lazy.lua index 07ad634..a9851f4 100644 --- a/home/user/.config/nvim/lua/base/lazy.lua +++ b/home/user/.config/nvim/lua/base/lazy.lua @@ -140,6 +140,44 @@ local plugins = { { 'fg', 'Telescope live_grep' }, } }, + { + '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( diff --git a/home/user/.config/nvim/lua/base/options.lua b/home/user/.config/nvim/lua/base/options.lua index c78f153..15550bc 100644 --- a/home/user/.config/nvim/lua/base/options.lua +++ b/home/user/.config/nvim/lua/base/options.lua @@ -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