Skip to content

Commit 2bd9a39

Browse files
committed
fix: bugs fix
1 parent 37d2e52 commit 2bd9a39

5 files changed

Lines changed: 70 additions & 15 deletions

File tree

lazy-lock.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@
2121
"null-ls.nvim": { "branch": "main", "commit": "0010ea927ab7c09ef0ce9bf28c2b573fc302f5a7" },
2222
"nvim-cmp": { "branch": "main", "commit": "d97d85e01339f01b842e6ec1502f639b080cb0fc" },
2323
"nvim-dap": { "branch": "master", "commit": "818cd8787a77a97703eb1d9090543a374f79a9ac" },
24-
"nvim-lspconfig": { "branch": "master", "commit": "8973916a3d015d65a8c4614e141f4270a713cf33" },
24+
"nvim-lspconfig": { "branch": "master", "commit": "d696e36d5792daf828f8c8e8d4b9aa90c1a10c2a" },
2525
"nvim-navic": { "branch": "master", "commit": "7d914a39a1ef8f4e22c2c4381abeef7c556f5a13" },
2626
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
2727
"nvim-spectre": { "branch": "master", "commit": "72f56f7585903cd7bf92c665351aa585e150af0f" },

lua/core/autocmds.lua

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,14 @@ vim.api.nvim_create_autocmd({ "BufEnter", "WinEnter" }, {
3434
end,
3535
})
3636

37+
vim.api.nvim_create_autocmd("CursorHold", {
38+
callback = function()
39+
vim.api.nvim_set_hl(0, "CursorLine", { bg = "#111111" })
40+
end,
41+
})
42+
43+
vim.api.nvim_create_autocmd("CursorMoved", {
44+
callback = function()
45+
vim.api.nvim_set_hl(0, "CursorLine", { bg = "#0a0a0a" })
46+
end,
47+
})

lua/core/options.lua

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -60,3 +60,11 @@ vim.diagnostic.config({
6060
signs = true,
6161
underline = true,
6262
})
63+
64+
vim.opt.cursorline = true
65+
vim.opt.cursorcolumn = false
66+
vim.opt.guicursor =
67+
"n-v-c:block-Cursor/lCursor," ..
68+
"i-ci-ve:ver25-Cursor/lCursor," ..
69+
"r-cr:hor20-Cursor/lCursor," ..
70+
"o:hor50-Cursor/lCursor"

lua/core/theme.lua

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,17 @@ require("tokyonight").setup({
3434
})
3535

3636
vim.cmd("colorscheme tokyonight")
37+
-- Neon cursor highlight
38+
vim.api.nvim_set_hl(0, "Cursor", {
39+
fg = "#000000",
40+
bg = "#00ffff", -- neon cyan
41+
})
42+
43+
vim.api.nvim_set_hl(0, "CursorLine", {
44+
bg = "#0a0a0a", -- subtle glow band
45+
})
46+
47+
vim.api.nvim_set_hl(0, "CursorLineNr", {
48+
fg = "#00ffff",
49+
bold = true,
50+
})

lua/core/tree.lua

Lines changed: 36 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,10 @@
1-
-- lua/core/tree.lua
2-
31
local ok, nvimtree = pcall(require, "nvim-tree")
42
if not ok then
53
return
64
end
75

86
nvimtree.setup({
7+
98
sync_root_with_cwd = true,
109
respect_buf_cwd = true,
1110

@@ -14,47 +13,70 @@ nvimtree.setup({
1413
update_root = true,
1514
},
1615

16+
view = {
17+
width = 32,
18+
side = "left",
19+
number = false,
20+
relativenumber = false,
21+
signcolumn = "yes",
22+
},
23+
1724
renderer = {
18-
highlight_git = true,
1925
root_folder_label = false,
26+
highlight_git = true,
27+
2028
indent_markers = {
2129
enable = true,
2230
},
31+
2332
icons = {
2433
show = {
2534
file = true,
2635
folder = true,
2736
folder_arrow = true,
2837
git = true,
2938
},
39+
3040
glyphs = {
3141
git = {
32-
unstaged = "", -- modified but not staged
33-
staged = "", -- staged
34-
unmerged = "",
35-
renamed = "",
36-
untracked = "", -- new file
37-
deleted = "",
38-
ignored = "",
42+
unstaged = "",
43+
staged = "",
44+
unmerged = "",
45+
renamed = "",
46+
untracked = "",
47+
deleted = "",
48+
ignored = "",
3949
},
4050
},
4151
},
4252
},
4353

4454
git = {
4555
enable = true,
46-
ignore = false,
56+
ignore = false, -- 🔥 IMPORTANT: show gitignored files
4757
show_on_dirs = true,
4858
show_on_open_dirs = true,
4959
},
5060

61+
filters = {
62+
dotfiles = false, -- 🔥 IMPORTANT: show dotfiles
63+
git_clean = false,
64+
no_buffer = false,
65+
custom = {},
66+
},
67+
5168
diagnostics = {
5269
enable = true,
5370
show_on_dirs = true,
5471
},
5572

56-
view = {
57-
width = 32,
58-
side = "left",
73+
actions = {
74+
open_file = {
75+
quit_on_open = false,
76+
},
77+
},
78+
79+
filesystem_watchers = {
80+
enable = true,
5981
},
6082
})

0 commit comments

Comments
 (0)