mirror of
https://github.com/m-housh/dotfiles.git
synced 2026-02-14 22:22:40 +00:00
feat: Adds mini-ai, ghostty config updates, tmux config updates.
This commit is contained in:
@@ -2,15 +2,10 @@ theme = catppuccin-mocha
|
|||||||
|
|
||||||
confirm-close-surface = false
|
confirm-close-surface = false
|
||||||
|
|
||||||
font-size = 18
|
font-size = 15
|
||||||
font-family = "Inconsolata Nerd Font"
|
font-thicken = false
|
||||||
font-thicken = true
|
|
||||||
|
|
||||||
# HACK: to open as large as possible.
|
window-save-state = always
|
||||||
window-height = 1000
|
|
||||||
window-width = 1000
|
|
||||||
window-padding-x = 4,2
|
|
||||||
window-padding-y = 8,2
|
|
||||||
|
|
||||||
# NOTE: This setting removes tabs, rounded borders, and window controls.
|
# NOTE: This setting removes tabs, rounded borders, and window controls.
|
||||||
# Also makes some of the below macos-titlebar-* things not matter, but
|
# Also makes some of the below macos-titlebar-* things not matter, but
|
||||||
@@ -24,5 +19,6 @@ macos-auto-secure-input = true
|
|||||||
macos-non-native-fullscreen = visible-menu
|
macos-non-native-fullscreen = visible-menu
|
||||||
macos-titlebar-style = transparent
|
macos-titlebar-style = transparent
|
||||||
macos-titlebar-proxy-icon = hidden
|
macos-titlebar-proxy-icon = hidden
|
||||||
|
macos-icon = custom-style
|
||||||
|
|
||||||
keybind = super+shift+t=toggle_quick_terminal
|
keybind = super+shift+t=toggle_quick_terminal
|
||||||
|
|||||||
@@ -7,28 +7,35 @@ local i = ls.insert_node
|
|||||||
local f = ls.function_node
|
local f = ls.function_node
|
||||||
local c = ls.choice_node
|
local c = ls.choice_node
|
||||||
local t = ls.text_node
|
local t = ls.text_node
|
||||||
|
local fmt = require("luasnip.extras.fmt").fmt
|
||||||
|
|
||||||
ls.add_snippets("lua", {
|
ls.add_snippets("lua", {
|
||||||
-- Setup a new snippet file.
|
-- Setup a new snippet file.
|
||||||
s("sf", {
|
s("sf", {
|
||||||
t({
|
t({
|
||||||
"-- Setup snippets.",
|
"-- Setup snippets.",
|
||||||
'local ls = require("luasnip")',
|
'local ls = require("luasnip")',
|
||||||
"local s = ls.snippet",
|
"local s = ls.snippet",
|
||||||
"local sn = ls.snippet_node",
|
"local sn = ls.snippet_node",
|
||||||
"local ms = ls.multi_snippet",
|
"local ms = ls.multi_snippet",
|
||||||
"local i = ls.insert_node",
|
"local i = ls.insert_node",
|
||||||
"local f = ls.function_node",
|
"local f = ls.function_node",
|
||||||
"local c = ls.choice_node",
|
"local c = ls.choice_node",
|
||||||
"local t = ls.text_node",
|
"local t = ls.text_node",
|
||||||
"-- Add snippets",
|
"-- Add snippets",
|
||||||
}),
|
}),
|
||||||
t('ls.add_snippets("'),
|
t('ls.add_snippets("'),
|
||||||
i(1, "<file-type>"),
|
i(1, "<file-type>"),
|
||||||
t({
|
t({
|
||||||
'", {',
|
'", {',
|
||||||
"\t-- Define snippets here.",
|
"\t-- Define snippets here.",
|
||||||
"})",
|
"})",
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
s("c", {
|
||||||
|
c(1, {
|
||||||
|
fmt("{}", { i(1), t("debug") }),
|
||||||
|
fmt("{}", { i(1), t("warning") }),
|
||||||
|
}),
|
||||||
|
}),
|
||||||
})
|
})
|
||||||
|
|||||||
@@ -34,6 +34,13 @@ require("lazy").setup({
|
|||||||
version = "v0.*",
|
version = "v0.*",
|
||||||
event = "VeryLazy",
|
event = "VeryLazy",
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"echasnovski/mini.ai",
|
||||||
|
version = "*",
|
||||||
|
config = function()
|
||||||
|
require("mini.ai").setup({})
|
||||||
|
end,
|
||||||
|
},
|
||||||
}, {
|
}, {
|
||||||
checker = {
|
checker = {
|
||||||
enabled = true,
|
enabled = true,
|
||||||
|
|||||||
@@ -23,6 +23,16 @@ return {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
"<C-n>",
|
||||||
|
mode = { "i", "s" },
|
||||||
|
function()
|
||||||
|
local ls = require("luasnip")
|
||||||
|
if ls.choice_active() then
|
||||||
|
ls.change_choice(1)
|
||||||
|
end
|
||||||
|
end,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
local ls = require("luasnip")
|
local ls = require("luasnip")
|
||||||
|
|||||||
@@ -31,4 +31,11 @@ ls.add_snippets("lua", {
|
|||||||
"})",
|
"})",
|
||||||
}),
|
}),
|
||||||
}),
|
}),
|
||||||
|
s("c", {
|
||||||
|
c(1, {
|
||||||
|
t("1st"),
|
||||||
|
t("2nd"),
|
||||||
|
}),
|
||||||
|
}),
|
||||||
})
|
})
|
||||||
|
|
||||||
|
|||||||
@@ -11,13 +11,23 @@ local fmt = require("luasnip.extras.fmt").fmt
|
|||||||
local rep = require("luasnip.extras").rep
|
local rep = require("luasnip.extras").rep
|
||||||
-- Add snippets
|
-- Add snippets
|
||||||
ls.add_snippets("swift", {
|
ls.add_snippets("swift", {
|
||||||
|
|
||||||
|
-- Logging
|
||||||
|
s(
|
||||||
|
{ trig = "logg", desc = "Log a message" },
|
||||||
|
fmt('logger.{}("{}")', {
|
||||||
|
i(1),
|
||||||
|
i(2),
|
||||||
|
})
|
||||||
|
),
|
||||||
|
|
||||||
-- Add a dependency snippet.
|
-- Add a dependency snippet.
|
||||||
s({ trig = "@Dep", desc = "Add a dependency." }, fmt("@Dependency(\\.{}) var {}", { i(1), rep(1) })),
|
s({ trig = "@dep", desc = "Add a dependency." }, fmt("@Dependency(\\.{}) var {}", { i(1), rep(1) })),
|
||||||
|
|
||||||
-- Add a dependency client.
|
-- Add a dependency client.
|
||||||
s(
|
s(
|
||||||
{
|
{
|
||||||
trig = "@DC",
|
trig = "@dc",
|
||||||
desc = "Add a dependency client.",
|
desc = "Add a dependency client.",
|
||||||
},
|
},
|
||||||
fmt(
|
fmt(
|
||||||
|
|||||||
@@ -58,10 +58,10 @@ bind \\ splitw -h
|
|||||||
bind - splitw -v
|
bind - splitw -v
|
||||||
|
|
||||||
# Use Alt-arrow keys to navigate panes
|
# Use Alt-arrow keys to navigate panes
|
||||||
bind -n M-Left select-pane -L
|
# bind -n M-Left select-pane -L
|
||||||
bind -n M-Right select-pane -R
|
# bind -n M-Right select-pane -R
|
||||||
bind -n M-Up select-pane -U
|
# bind -n M-Up select-pane -U
|
||||||
bind -n M-Down select-pane -D
|
# bind -n M-Down select-pane -D
|
||||||
|
|
||||||
# Close a pane quickly
|
# Close a pane quickly
|
||||||
bind-key -r K kill-pane
|
bind-key -r K kill-pane
|
||||||
@@ -73,7 +73,7 @@ bind -n M-h previous-window
|
|||||||
bind -n M-l next-window
|
bind -n M-l next-window
|
||||||
bind C-l send-keys 'C-l'
|
bind C-l send-keys 'C-l'
|
||||||
|
|
||||||
bind f run-shell "tmux display-popup -E -w 80% -h 80% ~/.local/scripts/tmux-sessionator"
|
bind f run-shell "tmux display-popup -E -w 80% -h 80% $SCRIPTS/tmux-sessionator"
|
||||||
bind-key -r C run-shell -b "~/.local/scripts/tmux-sessionator ~/.dotfiles"
|
bind-key -r C run-shell -b "~/.local/scripts/tmux-sessionator ~/.dotfiles"
|
||||||
unbind s
|
unbind s
|
||||||
bind s run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch"
|
bind s run-shell -b "~/.config/tmux/plugins/tmux-fzf/scripts/session.sh switch"
|
||||||
|
|||||||
Reference in New Issue
Block a user