Skip to content

Commit 93836d5

Browse files
committed
feat
1 parent 3866b42 commit 93836d5

File tree

8 files changed

+68
-21
lines changed

8 files changed

+68
-21
lines changed

README.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -112,5 +112,3 @@ Had weird issue with the first execution of Kitty not loading the `kitty.conf` c
112112
113113
$ launchctl load ~/Library/LaunchAgents/setenv.XDG_CONFIG_HOME.plist
114114
```
115-
116-

dotfiles/.envrc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
source_env_if_exists ~/.env.secret
22
export TRACE=0
3+
source .venv/bin/activate

nvim/lua/plugins/cmp.lua

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ return {
4848
},
4949
keymap = {
5050
["<Tab>"] = {
51-
"select_next",
51+
"accept",
5252
-- "fallback"
5353
},
5454
["<S-Tab>"] = {

nvim/lua/plugins/formatting.lua

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,41 @@ return {
6464
"-",
6565
},
6666
}
67+
68+
require("conform").formatters.ruff_format = {
69+
command = "ruff",
70+
args = {
71+
"format",
72+
"--force-exclude",
73+
"--stdin-filename",
74+
"$FILENAME",
75+
"-",
76+
},
77+
range_args = function(_, ctx)
78+
return {
79+
"format",
80+
"--force-exclude",
81+
"--range",
82+
string.format(
83+
"%d:%d-%d:%d",
84+
ctx.range.start[1],
85+
ctx.range.start[2] + 1,
86+
ctx.range["end"][1],
87+
ctx.range["end"][2] + 1
88+
),
89+
"--stdin-filename",
90+
"$FILENAME",
91+
"-",
92+
}
93+
end,
94+
stdin = true,
95+
cwd = require("conform.util").root_file({
96+
"pyproject.toml",
97+
"ruff.toml",
98+
".ruff.toml",
99+
}),
100+
}
101+
67102
require("conform").formatters.injected = {
68103
options = {
69104
ignore_errors = false,

nvim/lua/plugins/lsp.lua

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -118,6 +118,9 @@ return {
118118
vim.keymap.set("n", "<space>ca", vim.lsp.buf.code_action, bufopts)
119119
vim.keymap.set("n", "gr", vim.lsp.buf.references, bufopts)
120120
vim.keymap.set("n", "grr", vim.lsp.buf.rename, bufopts)
121+
vim.keymap.set("n", "gdx", ":belowright split | lua vim.lsp.buf.definition()<CR>", opts)
122+
vim.keymap.set("n", "gdv", ":vsplit | lua vim.lsp.buf.definition()<CR>", opts)
123+
vim.keymap.set("n", "gdt", ":tab split | lua vim.lsp.buf.definition()<CR>", opts)
121124
end,
122125
})
123126
end,

nvim/lua/plugins/obsidian.lua

Lines changed: 16 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -26,25 +26,24 @@ return {
2626
-- The options are passed directly to `vim.api.nvim_set_hl()`. See `:help nvim_set_hl`.
2727
ObsidianTodo = { fg = "NONE", bg = "NONE" },
2828
},
29-
-- Optional, alternatively you can customize the frontmatter data.
30-
---@return table
31-
note_frontmatter_func = function(note)
32-
-- Add the title of the note as an alias.
33-
if note.title then
34-
note:add_alias(note.title)
35-
end
36-
37-
local out = { id = note.id, aliases = note.aliases, tags = note.tags }
29+
frontmatter = {
30+
func = function(note)
31+
-- Add the title of the note as an alias.
32+
if note.title then
33+
note:add_alias(note.title)
34+
end
35+
local out = { id = note.id, aliases = note.aliases, tags = note.tags }
3836

39-
-- `note.metadata` contains any manually added fields in the frontmatter.
40-
-- So here we just make sure those fields are kept in the frontmatter.
41-
if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
42-
for k, v in pairs(note.metadata) do
43-
out[k] = v
37+
-- `note.metadata` contains any manually added fields in the frontmatter.
38+
-- So here we just make sure those fields are kept in the frontmatter.
39+
if note.metadata ~= nil and not vim.tbl_isempty(note.metadata) then
40+
for k, v in pairs(note.metadata) do
41+
out[k] = v
42+
end
4443
end
45-
end
4644

47-
return out
48-
end,
45+
return out
46+
end,
47+
},
4948
},
5049
}

nvim/lua/plugins/text-editing.lua

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,13 @@
11
return {
2+
{
3+
"ggandor/leap.nvim",
4+
dependencies = { "tpope/vim-repeat" },
5+
config = function()
6+
-- Set up recommended keymaps for leap.nvim
7+
vim.keymap.set({ "n", "x", "o" }, "s", "<Plug>(leap)")
8+
vim.keymap.set("n", "S", "<Plug>(leap-from-window)")
9+
end,
10+
},
211
{ "akinsho/git-conflict.nvim", version = "*", config = true },
312
{
413
"toppair/peek.nvim",

scripts/aliases.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ alias pipr='pip install -r requirements.txt'
5151
alias cheat='$EDITOR $PERSONAL_PATH/resource/cheat_sheet.md'
5252
alias ideas='$EDITOR $HOME/dss/notes/content/ideas/README.md'
5353
alias inb='inbox'
54-
alias inbox='$EDITOR $PERSONAL_PATH/inbox/inbox.md'
54+
alias inbox='$EDITOR $PERSONAL_PATH/area/inbox/inbox.md'
5555
alias quotes='$EDITOR $PERSONAL_PATH/lists/quotes.md'
5656
alias someday='$EDITOR $PERSONAL_PATH/someday.md'
5757

@@ -155,3 +155,5 @@ alias air='ssh adamgreen@air.local'
155155
alias macbook='ssh adam@macbook.local'
156156

157157
alias f='fish'
158+
159+
alias ai='claude'

0 commit comments

Comments
 (0)