Skip to content

Commit 2920ee4

Browse files
committed
move old nvchad config to .old
1 parent 5243462 commit 2920ee4

File tree

6 files changed

+1018
-0
lines changed

6 files changed

+1018
-0
lines changed
Lines changed: 75 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,75 @@
1+
local obsidian = require "obsidian"
2+
3+
obsidian.setup {
4+
workspaces = {
5+
{
6+
name = "Notes",
7+
path = "~/Notes",
8+
},
9+
},
10+
11+
daily_notes = {
12+
folder = "Journal",
13+
date_format = "%Y-%m-%d",
14+
alias_format = nil,
15+
template = nil,
16+
},
17+
18+
disable_frontmatter = true,
19+
20+
mappings = {
21+
["gf"] = {
22+
action = function()
23+
return obsidian.util.gf_passthrough()
24+
end,
25+
opts = { noremap = false, expr = true, buffer = true },
26+
},
27+
["<leader>ch"] = {
28+
action = function()
29+
return obsidian.util.toggle_checkbox()
30+
end,
31+
opts = { buffer = true },
32+
},
33+
},
34+
35+
backlinks = {
36+
height = 10,
37+
wrap = true,
38+
},
39+
40+
finder = "telescope.nvim",
41+
sort_by = "modified",
42+
sort_reversed = true,
43+
open_notes_in = "current",
44+
45+
ui = {
46+
enable = true,
47+
update_debounce = 200,
48+
checkboxes = {
49+
[" "] = { char = "󰄱", hl_group = "ObsidianTodo" },
50+
["x"] = { char = "", hl_group = "ObsidianDone" },
51+
[">"] = { char = "", hl_group = "ObsidianRightArrow" },
52+
["~"] = { char = "󰰱", hl_group = "ObsidianTilde" },
53+
},
54+
external_link_icon = { char = "", hl_group = "ObsidianExtLinkIcon" },
55+
reference_text = { hl_group = "ObsidianRefText" },
56+
highlight_text = { hl_group = "ObsidianHighlightText" },
57+
tags = { hl_group = "ObsidianTag" },
58+
hl_groups = {
59+
ObsidianTodo = { bold = true, fg = "#f78c6c" },
60+
ObsidianDone = { bold = true, fg = "#89ddff" },
61+
ObsidianRightArrow = { bold = true, fg = "#f78c6c" },
62+
ObsidianTilde = { bold = true, fg = "#ff5370" },
63+
ObsidianRefText = { underline = true, fg = "#c792ea" },
64+
ObsidianExtLinkIcon = { fg = "#c792ea" },
65+
ObsidianTag = { italic = true, fg = "#89ddff" },
66+
ObsidianHighlightText = { bg = "#89ddff" },
67+
},
68+
},
69+
70+
attachments = {
71+
img_folder = "Resources/Assets", -- This is the default
72+
},
73+
74+
yaml_parser = "native",
75+
}
Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
---@type ChadrcConfig
2+
local M = {}
3+
4+
M.ui = {
5+
theme = "catppuccin",
6+
transparency = true,
7+
8+
statusline = {
9+
theme = "vscode",
10+
separator_style = "default",
11+
overriden_modules = nil,
12+
},
13+
14+
tabufline = {
15+
lazyload = true,
16+
overriden_modules = function(modules)
17+
table.remove(modules, 4)
18+
end,
19+
},
20+
21+
-- refer to [nvchad.com/docs/config/theming]
22+
hl_override = {},
23+
changed_themes = {},
24+
extended_integrations = { "trouble", "alpha", "dap" },
25+
}
26+
27+
M.plugins = "custom.plugins"
28+
M.mappings = require "custom.mappings"
29+
30+
return M
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
vim.g.loaded_matchit = 1
2+
3+
vim.opt.tabstop = 2
4+
vim.opt.softtabstop = 2
5+
vim.opt.shiftwidth = 2
6+
vim.opt.expandtab = true
7+
vim.opt.smartindent = true
8+
vim.opt.wrap = false
9+
vim.opt.relativenumber = true
10+
vim.opt.backup = false
11+
vim.opt.swapfile = false
12+
vim.opt.termguicolors = true
13+
vim.opt.updatetime = 50
14+
vim.opt.timeoutlen = 500
15+
16+
vim.opt.incsearch = true
17+
vim.opt.hlsearch = true
18+
19+
-- Lua snippets
20+
vim.g.vscode_snippets_path = vim.fn.expand "$HOME/.local/share/chezmoi/config/vscode/snippets"
21+
vim.g.snipmate_snippets_path = vim.fn.stdpath "config" .. "/lua/custom/snippets"
22+
vim.g.lua_snippets_path = vim.fn.stdpath "config" .. "/lua/custom/lua-snippets"
23+
24+
require "custom.neovide"
Lines changed: 122 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,122 @@
1+
local M = {}
2+
3+
M.general = {
4+
n = {
5+
["<Esc>"] = {
6+
function()
7+
vim.cmd.noh()
8+
end,
9+
"Clear Highlights",
10+
},
11+
},
12+
}
13+
14+
M.spectre = {
15+
n = {
16+
["<leader>st"] = {
17+
function()
18+
require("spectre").toggle()
19+
end,
20+
"Toggle Spectre",
21+
},
22+
["<leader>sw"] = {
23+
function()
24+
require("spectre").open_visual { select_word = true }
25+
end,
26+
"Search Current Word",
27+
},
28+
["<leader>sp"] = {
29+
function()
30+
require("spectre").open_file_search { select_word = true }
31+
end,
32+
"Search Current File",
33+
},
34+
},
35+
36+
v = {
37+
["<leader>sw"] = {
38+
function()
39+
require("spectre").open_visual()
40+
end,
41+
"Search Current Word",
42+
},
43+
},
44+
}
45+
46+
M.trouble = {
47+
n = {
48+
["<leader>tt"] = {
49+
":TroubleToggle<CR>",
50+
"Trouble",
51+
},
52+
},
53+
}
54+
55+
M.lspconfig = {
56+
n = {
57+
["<leader>ca"] = {
58+
function()
59+
require("actions-preview").code_actions()
60+
end,
61+
"Code Actions",
62+
},
63+
},
64+
v = {
65+
["<leader>ca"] = {
66+
function()
67+
require("actions-preview").code_actions()
68+
end,
69+
"Code Actions",
70+
},
71+
},
72+
}
73+
74+
M.undotree = {
75+
n = {
76+
["<leader>u"] = {
77+
":UndotreeToggle<CR>",
78+
"Show undo tree",
79+
},
80+
},
81+
}
82+
83+
M.telescope = {
84+
n = {
85+
["<leader>fp"] = {
86+
function()
87+
require("telescope").extensions.project.project {
88+
display_type = "full",
89+
}
90+
end,
91+
"Find projects",
92+
},
93+
},
94+
}
95+
96+
M.cmp = {
97+
i = {
98+
["<Up>"] = {
99+
function()
100+
local cmp = require "cmp"
101+
102+
if cmp.visible() then
103+
cmp.select_prev_item()
104+
end
105+
end,
106+
"Select previous item",
107+
},
108+
109+
["<Down>"] = {
110+
function()
111+
local cmp = require "cmp"
112+
113+
if cmp.visible() then
114+
cmp.select_next_item()
115+
end
116+
end,
117+
"Select next item",
118+
},
119+
},
120+
}
121+
122+
return M
Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
-- Neovide
2+
if vim.g.neovide then
3+
vim.o.guifont = "Zed Mono Extended:h18"
4+
vim.opt.linespace = 0
5+
vim.g.neovide_scale_factor = 1.0
6+
vim.g.neovide_padding_top = 0
7+
vim.g.neovide_padding_bottom = 0
8+
vim.g.neovide_padding_right = 0
9+
vim.g.neovide_padding_left = 0
10+
vim.g.neovide_floating_blur_amount_x = 2.0
11+
vim.g.neovide_floating_blur_amount_y = 2.0
12+
vim.g.neovide_scroll_animation_length = 0.3
13+
vim.g.neovide_cursor_vfx_mode = ""
14+
vim.g.neovide_cursor_vfx_opacity = 200.0
15+
vim.g.neovide_hide_mouse_when_typing = false
16+
vim.g.neovide_theme = 'auto'
17+
vim.g.neovide_unlink_border_highlights = true
18+
19+
local alpha = function()
20+
return string.format("%x", math.floor(255 * (vim.g.transparency or 0.8)))
21+
end
22+
23+
-- g:neovide_transparency should be 0 if you want to unify transparency of content and title bar.
24+
vim.g.neovide_transparency = 0.0
25+
vim.g.transparency = 0.8
26+
vim.g.neovide_background_color = "#0f1117" .. alpha()
27+
end
28+

0 commit comments

Comments
 (0)