Compare commits
No commits in common. "8da7e8132983f40f584409f1b52a5b297725d8f1" and "fc6b1e5fe5f066eee08b805bc689d48d938ea304" have entirely different histories.
8da7e81329
...
fc6b1e5fe5
8 changed files with 204 additions and 373 deletions
|
@ -3,9 +3,9 @@
|
||||||
|
|
||||||
# The current setup
|
# The current setup
|
||||||
|
|
||||||
Terminal Emulator: [Ghostty](https://ghostty.org/)
|
Terminal Emulator: [Kitty](https://sw.kovidgoyal.net/kitty/)
|
||||||
- Zig-based terminal emulator
|
- fast GPU accelerated terminal emulator
|
||||||
- uses platform-native UI & GPU acceleration (e.g. MacOS secure input for passwords)
|
- removes need for tmux (appreciate it)
|
||||||
|
|
||||||
Shell: [fish](https://fishshell.com/)
|
Shell: [fish](https://fishshell.com/)
|
||||||
- completions
|
- completions
|
||||||
|
|
|
@ -1,48 +0,0 @@
|
||||||
### Configuration
|
|
||||||
# Font
|
|
||||||
font-family = "Hack Nerd Font Mono"
|
|
||||||
font-family-bold = "Hack Nerd Font Mono"
|
|
||||||
font-family-italic = "Hack Nerd Font Mono"
|
|
||||||
font-family-bold-italic = "Hack Nerd Font Mono"
|
|
||||||
font-family = "Hack Nerd Font Mono"
|
|
||||||
font-size = 15.0
|
|
||||||
|
|
||||||
# Theme
|
|
||||||
theme = "detuned"
|
|
||||||
|
|
||||||
# Cursor
|
|
||||||
cursor-style = "block"
|
|
||||||
mouse-hide-while-typing = true
|
|
||||||
background-opacity = 0.9
|
|
||||||
background-blur = 10
|
|
||||||
unfocused-split-opacity = 1
|
|
||||||
|
|
||||||
# Window
|
|
||||||
window-padding-x = 0
|
|
||||||
window-padding-y = 0
|
|
||||||
|
|
||||||
macos-titlebar-style = "tabs"
|
|
||||||
macos-option-as-alt = left
|
|
||||||
|
|
||||||
### Keybinds
|
|
||||||
# Splits
|
|
||||||
keybind = ctrl+a>v=new_split:left
|
|
||||||
keybind = ctrl+a>n=new_split:down
|
|
||||||
keybind = ctrl+a>z=toggle_split_zoom
|
|
||||||
keybind = alt+h=goto_split:left
|
|
||||||
keybind = alt+l=goto_split:right
|
|
||||||
keybind = alt+j=goto_split:down
|
|
||||||
keybind = alt+k=goto_split:up
|
|
||||||
keybind = ctrl+a>l=resize_split:right,60
|
|
||||||
keybind = ctrl+a>h=resize_split:left,60
|
|
||||||
keybind = ctrl+a>j=resize_split:down,60
|
|
||||||
keybind = ctrl+a>k=resize_split:up,60
|
|
||||||
# Tabs
|
|
||||||
keybind = cmd+t=new_tab
|
|
||||||
keybind = cmd+w=close_tab
|
|
||||||
keybind = ctrl+tab=next_tab
|
|
||||||
keybind = ctrl+shift>tab=previous_tab
|
|
||||||
keybind = ctrl+a>d=close_surface
|
|
||||||
# Terminal
|
|
||||||
keybind = global:cmd+grave_accent=toggle_quick_terminal
|
|
||||||
shell-integration = fish
|
|
|
@ -7,7 +7,6 @@ local M = {}
|
||||||
|
|
||||||
M.base46 = {
|
M.base46 = {
|
||||||
theme = "mountain",
|
theme = "mountain",
|
||||||
transparency = true,
|
|
||||||
|
|
||||||
hl_override = {
|
hl_override = {
|
||||||
Comment = { italic = true },
|
Comment = { italic = true },
|
||||||
|
|
|
@ -1,14 +0,0 @@
|
||||||
return {
|
|
||||||
provider = "openrouter", -- Recommend using Claude
|
|
||||||
vendors = {
|
|
||||||
["openrouter"] = {
|
|
||||||
__inherited_from = "openai",
|
|
||||||
endpoint = "https://openrouter.ai/api/v1",
|
|
||||||
api_key_name = "OPENROUTER_API_KEY_AVANTE",
|
|
||||||
model = "anthropic/claude-3.7-sonnet",
|
|
||||||
temperature = 0,
|
|
||||||
max_tokens = 4096,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
auto_suggestions_provider = nil, -- Since auto-suggestions are a high-frequency operation and therefore expensive, it is recommended to specify an inexpensive provider or even a free provider: copilot
|
|
||||||
}
|
|
|
@ -4,12 +4,8 @@ local options = {
|
||||||
css = { "prettier" },
|
css = { "prettier" },
|
||||||
html = { "prettier" },
|
html = { "prettier" },
|
||||||
python = { "ruff_format", "ruff_fix", "ruff_organize_imports" },
|
python = { "ruff_format", "ruff_fix", "ruff_organize_imports" },
|
||||||
tf = { "tflint", "terraform-ls" },
|
|
||||||
go = { "goimports", "gofmt" },
|
go = { "goimports", "gofmt" },
|
||||||
json = { "jq" },
|
json = { "jq" },
|
||||||
templ = { "templ" },
|
|
||||||
ts = { "typescript-language-server" },
|
|
||||||
zig = { "zls" },
|
|
||||||
},
|
},
|
||||||
|
|
||||||
format_on_save = {
|
format_on_save = {
|
||||||
|
|
|
@ -1,11 +0,0 @@
|
||||||
return {
|
|
||||||
animate = {
|
|
||||||
enabled = false,
|
|
||||||
},
|
|
||||||
exit_when_last = false,
|
|
||||||
right = {
|
|
||||||
{
|
|
||||||
ft = "trouble",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
|
@ -1,4 +1,4 @@
|
||||||
local configs = require("nvchad.configs.lspconfig")
|
local configs = require "nvchad.configs.lspconfig"
|
||||||
configs.defaults()
|
configs.defaults()
|
||||||
|
|
||||||
local servers = {
|
local servers = {
|
||||||
|
@ -17,8 +17,6 @@ local servers = {
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
zls = {},
|
zls = {},
|
||||||
terraformls = {},
|
|
||||||
templ = {},
|
|
||||||
|
|
||||||
pyright = {
|
pyright = {
|
||||||
settings = {
|
settings = {
|
||||||
|
|
|
@ -2,14 +2,14 @@ return {
|
||||||
{
|
{
|
||||||
"stevearc/conform.nvim",
|
"stevearc/conform.nvim",
|
||||||
event = "BufWritePre", -- uncomment for format on save
|
event = "BufWritePre", -- uncomment for format on save
|
||||||
opts = require("configs.conform"),
|
opts = require "configs.conform",
|
||||||
},
|
},
|
||||||
|
|
||||||
-- These are some examples, uncomment them if you want to see them work!
|
-- These are some examples, uncomment them if you want to see them work!
|
||||||
{
|
{
|
||||||
"neovim/nvim-lspconfig",
|
"neovim/nvim-lspconfig",
|
||||||
config = function()
|
config = function()
|
||||||
require("configs.lspconfig")
|
require "configs.lspconfig"
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
|
||||||
|
@ -25,7 +25,6 @@ return {
|
||||||
"python",
|
"python",
|
||||||
"typescript",
|
"typescript",
|
||||||
"go",
|
"go",
|
||||||
"terraform",
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -67,46 +66,8 @@ return {
|
||||||
win = {
|
win = {
|
||||||
type = "split", -- split window
|
type = "split", -- split window
|
||||||
relative = "win", -- relative to current window
|
relative = "win", -- relative to current window
|
||||||
position = "left", -- right side
|
position = "right", -- right side
|
||||||
size = 0.20, -- 30% of the window
|
size = 0.15, -- 30% of the window
|
||||||
},
|
|
||||||
},
|
|
||||||
diagnostics = {
|
|
||||||
win = {
|
|
||||||
type = "split",
|
|
||||||
relative = "win",
|
|
||||||
position = "bottom",
|
|
||||||
size = 0.30,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
lsp = { -- Configure LSP references mode
|
|
||||||
win = {
|
|
||||||
type = "split", -- split window
|
|
||||||
relative = "win", -- relative to current window
|
|
||||||
position = "right", -- appear below
|
|
||||||
size = 0.25, -- 25% of the window height
|
|
||||||
},
|
|
||||||
},
|
|
||||||
preview = {
|
|
||||||
mode = "diagnostics",
|
|
||||||
preview = {
|
|
||||||
type = "split",
|
|
||||||
relative = "win",
|
|
||||||
position = "right",
|
|
||||||
size = 0.3,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
preview_float = {
|
|
||||||
mode = "diagnostics",
|
|
||||||
preview = {
|
|
||||||
type = "float",
|
|
||||||
relative = "editor",
|
|
||||||
border = "rounded",
|
|
||||||
title = "Preview",
|
|
||||||
title_pos = "center",
|
|
||||||
position = { 0, -2 },
|
|
||||||
size = { width = 0.3, height = 0.5 },
|
|
||||||
zindex = 200,
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
@ -115,7 +76,7 @@ return {
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>xx",
|
"<leader>xx",
|
||||||
"<cmd>Trouble preview toggle<cr>",
|
"<cmd>Trouble diagnostics toggle<cr>",
|
||||||
desc = "Diagnostics (Trouble)",
|
desc = "Diagnostics (Trouble)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -130,7 +91,7 @@ return {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"<leader>cl",
|
"<leader>cl",
|
||||||
"<cmd>Trouble lsp toggle focus=false<cr>",
|
"<cmd>Trouble lsp toggle focus=false win.position=right<cr>",
|
||||||
desc = "LSP Definitions / references / ... (Trouble)",
|
desc = "LSP Definitions / references / ... (Trouble)",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -179,54 +140,4 @@ return {
|
||||||
"gfontenot/vim-xcode",
|
"gfontenot/vim-xcode",
|
||||||
enabled = true,
|
enabled = true,
|
||||||
},
|
},
|
||||||
{
|
|
||||||
"yetone/avante.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
lazy = false,
|
|
||||||
version = false, -- set this to "*" if you want to always pull the latest change, false to update on release
|
|
||||||
opts = require("configs.avante"),
|
|
||||||
-- if you want to build from source then do `make BUILD_FROM_SOURCE=true`
|
|
||||||
build = "make",
|
|
||||||
-- build = "powershell -ExecutionPolicy Bypass -File Build.ps1 -BuildFromSource false" -- for windows
|
|
||||||
dependencies = {
|
|
||||||
"stevearc/dressing.nvim",
|
|
||||||
"nvim-lua/plenary.nvim",
|
|
||||||
"MunifTanjim/nui.nvim",
|
|
||||||
--- The below dependencies are optional,
|
|
||||||
"hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
|
|
||||||
"nvim-tree/nvim-web-devicons", -- or echasnovski/mini.icons
|
|
||||||
"zbirenbaum/copilot.lua", -- for providers='copilot'
|
|
||||||
{
|
|
||||||
-- support for image pasting
|
|
||||||
"HakonHarnes/img-clip.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
opts = {
|
|
||||||
-- recommended settings
|
|
||||||
default = {
|
|
||||||
embed_image_as_base64 = false,
|
|
||||||
prompt_for_file_name = false,
|
|
||||||
drag_and_drop = {
|
|
||||||
insert_mode = true,
|
|
||||||
},
|
|
||||||
-- required for Windows users
|
|
||||||
use_absolute_path = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
-- Make sure to set this up properly if you have lazy=true
|
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
|
||||||
opts = {
|
|
||||||
file_types = { "markdown", "Avante" },
|
|
||||||
},
|
|
||||||
ft = { "markdown", "Avante" },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"folke/edgy.nvim",
|
|
||||||
event = "VeryLazy",
|
|
||||||
enabled = false,
|
|
||||||
opts = require("configs.edgy"),
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue