all repos

init.lua @ 15ffa96

my nvim config
2 files changed, 17 insertions(+), 4 deletions(-)
refactor: update hidden configs
Author: Smirnov Oleksandr ss2316544@gmail.com
Committed at: 2024-01-16 10:21:41 +0200
Parent: 2af7fad
M lua/plugins/navigation.lua

@@ -65,24 +65,36 @@ ["`"] = "actions.cd",

["~"] = "actions.tcd", }, view_options = { - show_hidden = true, + show_hidden = false, is_always_hidden = function(name, _) if ({ + [".."] = {}, -- annoying as hell [".git"] = {}, - [".bin"] = {}, - [".vscode"] = {}, [".docker"] = {}, + ["tmp"] = {}, + ["build"] = {}, ["dist"] = {}, ["node_modules"] = {}, ["__pycache__"] = {}, - ["vendor"] = {}, ["target"] = {}, })[name] then return true end return false + end, + is_hidden_file = function(name, _) + if + ({ + ["vendor"] = {}, + [".vscode"] = {}, + [".bin"] = {}, + })[name] + then + return true + end + return vim.startswith(name, ".") end, }, },
M lua/plugins/telescope.lua

@@ -19,6 +19,7 @@ selection_caret = " ",

file_ignore_patterns = { "^\\.git$", "^\\.bin$", + "^\\tmp$", "node_modules", "__pycache__", "target",