Refresh generated neovim config
This commit is contained in:
@ -477,6 +477,9 @@ local config = {
|
||||
always_show = { -- remains visible even if other settings would normally hide it
|
||||
--".gitignored",
|
||||
},
|
||||
always_show_by_pattern = { -- uses glob style patterns
|
||||
--".env*",
|
||||
},
|
||||
never_show = { -- remains hidden even if visible is toggled to true, this overrides always_show
|
||||
--".DS_Store",
|
||||
--"thumbs.db"
|
||||
|
||||
@ -167,6 +167,11 @@ function create_item(context, path, _type, bufnr)
|
||||
if f.always_show[name] then
|
||||
item.filtered_by = item.filtered_by or {}
|
||||
item.filtered_by.always_show = true
|
||||
else
|
||||
if utils.is_filtered_by_pattern(f.always_show_by_pattern, path, name) then
|
||||
item.filtered_by = item.filtered_by or {}
|
||||
item.filtered_by.always_show = true
|
||||
end
|
||||
end
|
||||
if f.hide_by_name[name] then
|
||||
item.filtered_by = item.filtered_by or {}
|
||||
|
||||
@ -260,7 +260,7 @@ M.setup = function(config, global_config)
|
||||
config.filtered_items = config.filtered_items or {}
|
||||
config.enable_git_status = global_config.enable_git_status
|
||||
|
||||
for _, key in ipairs({ "hide_by_pattern", "never_show_by_pattern" }) do
|
||||
for _, key in ipairs({ "hide_by_pattern", "always_show_by_pattern", "never_show_by_pattern" }) do
|
||||
local list = config.filtered_items[key]
|
||||
if type(list) == "table" then
|
||||
for i, pattern in ipairs(list) do
|
||||
|
||||
@ -7,12 +7,15 @@ local log = require("neo-tree.log")
|
||||
local M = {}
|
||||
|
||||
M.popup_options = function(title, min_width, override_options)
|
||||
if string.len(title) ~= 0 then
|
||||
title = " " .. title .. " "
|
||||
end
|
||||
min_width = min_width or 30
|
||||
local width = string.len(title) + 2
|
||||
|
||||
local nt = require("neo-tree")
|
||||
local popup_border_style = nt.config.popup_border_style
|
||||
local popup_border_text = NuiText(" " .. title .. " ", highlights.FLOAT_TITLE)
|
||||
local popup_border_text = NuiText(title, highlights.FLOAT_TITLE)
|
||||
local col = 0
|
||||
-- fix popup position when using multigrid
|
||||
local popup_last_col = vim.api.nvim_win_get_position(0)[2] + width + 2
|
||||
@ -49,7 +52,7 @@ M.popup_options = function(title, min_width, override_options)
|
||||
|
||||
if popup_border_style == "NC" then
|
||||
local blank = NuiText(" ", highlights.TITLE_BAR)
|
||||
popup_border_text = NuiText(" " .. title .. " ", highlights.TITLE_BAR)
|
||||
popup_border_text = NuiText(title, highlights.TITLE_BAR)
|
||||
popup_options.border = {
|
||||
style = { "▕", blank, "▏", "▏", " ", "▔", " ", "▕" },
|
||||
highlight = highlights.FLOAT_BORDER,
|
||||
|
||||
Reference in New Issue
Block a user