require'nvim-tree'.setup { -- 关闭文件时自动关闭 auto_close = true, -- 不显示 git 状态图标 git = { enable = false } } nvim-tree 有很多配置项,但我觉得默认已经很完美了。 这里使用了 nvim-tree.lua 的默认配置,我只把 git 状态图标关闭了,打开自动关闭 nvim-tree.nvim 主页有更多详细设置...
localopts={highlight_hovered_item=true,show_guides=true,auto_preview=false,position='right',relative_width=true,width=25,auto_close=false,show_numbers=false,show_relative_numbers=false,show_symbol_details=true,preview_bg_highlight='Pmenu',autofold_depth=nil,auto_unfold_hover=true,fold_markers=...
'nvim-tree/nvim-tree.lua',--"/home/alex/src/nvim-tree/master",})ifbootstrappingthenvim.cmd([[autocmd User PackerComplete quitall]])packer.sync()returnendlocalapi=require("nvim-tree.api")--
require("simple-tree").setup {-- 目录树窗口的宽度width=30,-- 启用或禁用自动聚焦到当前文件auto_focus_file=true,-- 你可以自定义文件图标file_icons={ ['lua']=" ", ['py']="",-- ...['default']=''},-- 你可以自定义文件夹图标folder_icons='', folder_open_icons='',...
You might use this to auto-close the window or clear the filter. The arg is the path of the file opened. "file_renamed"~ Fired after a file (or folder) has been renamed. The arg is an table containing `source` and `destination` properties. "neo_tree_buffer_enter"~ Fired ...
config() -- if nvim-tree is last buffer close it gracefully local modifiedBufs = function(bufs) local t = 0 for k,v in pairs(bufs) do if v.name:match("NvimTree_") == nil then t = t + 1 end end return t end vim.api.nvim_create_autocmd("BufEnter", { nested = true, ...
auto_close = true, -- 不显示 git 状态图标 git = { enable = false } } nvim-tree有很多配置项,但我觉得默认已经很完美了。 这里使用了nvim-tree.lua的默认配置,我只把 git 状态图标关闭了,打开自动关闭 nvim-tree.nvim主页有更多详细设置选项介绍 ...
--[[ vim.api.nvim_create_autocmd("FileType", { pattern = "lua", callback = function() vim.lsp.start { cmd = { "lua-language-server" } } end, }) ]] Steps to reproduce nvim -nu /tmp/nvt-min.lua NvimTreeOpen Open directory node Close using the 'close parent node' mapping ...
setup({ filter_rules = { include_current_win = false, autoselect_one = true, -- filter using buffer options bo = { -- if the file type is one of following, the window will be ignored filetype = { "neo-tree", "neo-tree-popup", "notify" }, -- if the buffer type is one of...
Files master .github assets autoload contrib doc lua nvim-treesitter caching.lua compat.lua configs.lua fold.lua health.lua highlight.lua incremental_selection.lua indent.lua info.lua install.lua locals.lua parsers.lua query.lua query_predicates.lua ...