Skip to content

Commit bdf657b

Browse files
committed
fix: bugs fix in hidden files
1 parent 2bd9a39 commit bdf657b

4 files changed

Lines changed: 22 additions & 10 deletions

File tree

lua/core/dashboard.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,12 @@ vim.api.nvim_set_hl(0, "DashboardHeader", {
99
vim.api.nvim_set_hl(0, "DashboardMenu", {
1010
fg = "#bb9af7",
1111
})
12+
local function dashboard_find_files()
13+
require("telescope.builtin").find_files({
14+
hidden = true,
15+
no_ignore = true,
16+
})
17+
end
1218

1319
local function open_last_session()
1420
local ok, persistence = pcall(require, "persistence")
@@ -95,7 +101,7 @@ local header = {
95101
}
96102

97103
local menu = {
98-
{ icon = "", text = "Find File", key = "f", cmd = "Telescope find_files" },
104+
{ icon = "", text = "Find File", key = "f", action = dashboard_find_files},
99105
{ icon = "", text = "New File", key = "n", cmd = "enew" },
100106
{ icon = "", text = "Recent Files", key = "r", cmd = "Telescope oldfiles" },
101107
{ icon = "", text = "Find Text", key = "g", cmd = "Telescope live_grep" },

lua/core/keymaps.lua

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,13 @@ local map = vim.keymap.set
33
local opts = { noremap = true, silent = true }
44

55

6-
map("n", "<leader>ff", "<cmd>Telescope find_files<CR>", opts)
6+
vim.keymap.set("n", "<leader>ff", function()
7+
require("telescope.builtin").find_files({
8+
hidden = true,
9+
no_ignore = true,
10+
})
11+
end, { noremap = true, silent = true, desc = "Find files (incl hidden)" })
12+
713
map("n", "<leader>fg", "<cmd>Telescope live_grep<CR>", opts)
814
map("n", "<leader>fb", "<cmd>Telescope buffers<CR>", opts)
915
map("n", "<leader>fh", "<cmd>Telescope help_tags<CR>", opts)

lua/core/theme.lua

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
require("tokyonight").setup({
2-
style = "night", -- darkest base
2+
style = "night",
33
transparent = false,
44

55
terminal_colors = true,
@@ -14,15 +14,15 @@ require("tokyonight").setup({
1414
},
1515

1616
on_colors = function(colors)
17-
-- FORCE PURE BLACK BACKGROUND
17+
1818
colors.bg = "#000000"
1919
colors.bg_dark = "#000000"
2020
colors.bg_float = "#000000"
2121
colors.bg_sidebar = "#000000"
2222
colors.bg_popup = "#000000"
2323
colors.bg_statusline = "#000000"
2424

25-
-- Neon accents
25+
2626
colors.blue = "#7aa2ff"
2727
colors.cyan = "#00ffff"
2828
colors.purple = "#bb9af7"
@@ -34,14 +34,14 @@ require("tokyonight").setup({
3434
})
3535

3636
vim.cmd("colorscheme tokyonight")
37-
-- Neon cursor highlight
37+
3838
vim.api.nvim_set_hl(0, "Cursor", {
3939
fg = "#000000",
40-
bg = "#00ffff", -- neon cyan
40+
bg = "#00ffff",
4141
})
4242

4343
vim.api.nvim_set_hl(0, "CursorLine", {
44-
bg = "#0a0a0a", -- subtle glow band
44+
bg = "#0a0a0a",
4545
})
4646

4747
vim.api.nvim_set_hl(0, "CursorLineNr", {

lua/core/tree.lua

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -53,13 +53,13 @@ nvimtree.setup({
5353

5454
git = {
5555
enable = true,
56-
ignore = false, -- 🔥 IMPORTANT: show gitignored files
56+
ignore = false,
5757
show_on_dirs = true,
5858
show_on_open_dirs = true,
5959
},
6060

6161
filters = {
62-
dotfiles = false, -- 🔥 IMPORTANT: show dotfiles
62+
dotfiles = false,
6363
git_clean = false,
6464
no_buffer = false,
6565
custom = {},

0 commit comments

Comments
 (0)