Compare commits
3 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
| d9efa6d0da | |||
| f9a3f4ef46 | |||
| c7868ff459 |
@ -1,6 +1,6 @@
|
|||||||
# Text style
|
# Text style
|
||||||
adjust-cell-height = 30%
|
adjust-cell-height = 30%
|
||||||
adjust-cell-width = -10%
|
adjust-cell-width = -9%
|
||||||
cursor-style = block
|
cursor-style = block
|
||||||
cursor-style-blink = false
|
cursor-style-blink = false
|
||||||
font-family = Inconsolata Patched G
|
font-family = Inconsolata Patched G
|
||||||
@ -9,24 +9,22 @@ font-synthetic-style = no-bold, no-bold-italic
|
|||||||
|
|
||||||
# Window style
|
# Window style
|
||||||
background-blur = true
|
background-blur = true
|
||||||
background-opacity = 0.88
|
background-opacity = 0.9
|
||||||
theme = dark:catppuccin-mocha.conf, light:catppuccin-latte.conf
|
theme = dark:catppuccin-mocha.conf, light:catppuccin-latte.conf
|
||||||
window-padding-color = extend
|
window-padding-color = extend
|
||||||
window-padding-x = 12,0
|
window-padding-x = 5,0
|
||||||
window-padding-y = 12,0
|
window-padding-y = 5,0
|
||||||
|
|
||||||
# Functionality
|
# Functionality
|
||||||
scrollback-limit = 100000000
|
scrollback-limit = 100000
|
||||||
window-inherit-working-directory = true
|
window-inherit-working-directory = true
|
||||||
copy-on-select = clipboard
|
copy-on-select = clipboard
|
||||||
shell-integration-features = no-cursor
|
shell-integration-features = no-cursor
|
||||||
|
# Not currently using tmux
|
||||||
|
# command = ~/.config/ghostty/ghostty-tmux
|
||||||
|
|
||||||
# macOS-specific settings
|
# macOS-specific settings
|
||||||
alpha-blending = linear
|
alpha-blending = linear
|
||||||
macos-icon = xray
|
macos-icon = xray
|
||||||
macos-titlebar-style = transparent
|
macos-titlebar-style = transparent
|
||||||
keybind = shift+enter=text:\n
|
keybind = shift+enter=text:\n
|
||||||
|
|
||||||
# Not currently using tmux
|
|
||||||
# command = ~/.config/ghostty/ghostty-tmux
|
|
||||||
|
|
||||||
|
|||||||
@ -5,7 +5,7 @@ palette = 3=#f9e2af
|
|||||||
palette = 4=#89b4fa
|
palette = 4=#89b4fa
|
||||||
palette = 5=#f5c2e7
|
palette = 5=#f5c2e7
|
||||||
palette = 6=#94e2d5
|
palette = 6=#94e2d5
|
||||||
palette = 7=#a6adc8
|
palette = 7=#bac2de
|
||||||
palette = 8=#585b70
|
palette = 8=#585b70
|
||||||
palette = 9=#f38ba8
|
palette = 9=#f38ba8
|
||||||
palette = 10=#a6e3a1
|
palette = 10=#a6e3a1
|
||||||
@ -13,10 +13,10 @@ palette = 11=#f9e2af
|
|||||||
palette = 12=#89b4fa
|
palette = 12=#89b4fa
|
||||||
palette = 13=#f5c2e7
|
palette = 13=#f5c2e7
|
||||||
palette = 14=#94e2d5
|
palette = 14=#94e2d5
|
||||||
palette = 15=#bac2de
|
palette = 15=#a6adc8
|
||||||
background = 1e1e2e
|
background = 101018
|
||||||
foreground = cdd6f4
|
foreground = cdd6f4
|
||||||
cursor-color = f5e0dc
|
cursor-color = f5e0dc
|
||||||
cursor-text = 1e1e2e
|
cursor-text = 101018
|
||||||
selection-background = 353749
|
selection-background = 353749
|
||||||
selection-foreground = cdd6f4
|
selection-foreground = cdd6f4
|
||||||
|
|||||||
@ -1,4 +1,3 @@
|
|||||||
---
|
|
||||||
k9s:
|
k9s:
|
||||||
body:
|
body:
|
||||||
fgColor: '#4c4f69'
|
fgColor: '#4c4f69'
|
||||||
@ -65,11 +64,19 @@ k9s:
|
|||||||
bgColor: '#eff1f5'
|
bgColor: '#eff1f5'
|
||||||
chartBgColor: '#eff1f5'
|
chartBgColor: '#eff1f5'
|
||||||
dialBgColor: '#eff1f5'
|
dialBgColor: '#eff1f5'
|
||||||
defaultDialColors: ['#40a02b', '#d20f39']
|
defaultDialColors:
|
||||||
defaultChartColors: ['#40a02b', '#d20f39']
|
- '#40a02b'
|
||||||
|
- '#d20f39'
|
||||||
|
defaultChartColors:
|
||||||
|
- '#40a02b'
|
||||||
|
- '#d20f39'
|
||||||
resourceColors:
|
resourceColors:
|
||||||
cpu: ['#8839ef', '#1e66f5']
|
cpu:
|
||||||
mem: ['#df8e1d', '#fe640b']
|
- '#8839ef'
|
||||||
|
- '#1e66f5'
|
||||||
|
mem:
|
||||||
|
- '#df8e1d'
|
||||||
|
- '#fe640b'
|
||||||
yaml:
|
yaml:
|
||||||
keyColor: '#1e66f5'
|
keyColor: '#1e66f5'
|
||||||
valueColor: '#4c4f69'
|
valueColor: '#4c4f69'
|
||||||
|
|||||||
@ -2,22 +2,22 @@
|
|||||||
k9s:
|
k9s:
|
||||||
body:
|
body:
|
||||||
fgColor: '#cdd6f4'
|
fgColor: '#cdd6f4'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
logoColor: '#cba6f7'
|
logoColor: '#cba6f7'
|
||||||
prompt:
|
prompt:
|
||||||
fgColor: '#cdd6f4'
|
fgColor: '#cdd6f4'
|
||||||
bgColor: default
|
bgColor: '#181825'
|
||||||
suggestColor: '#89b4fa'
|
suggestColor: '#89b4fa'
|
||||||
help:
|
help:
|
||||||
fgColor: '#cdd6f4'
|
fgColor: '#cdd6f4'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
sectionColor: '#a6e3a1'
|
sectionColor: '#a6e3a1'
|
||||||
keyColor: '#89b4fa'
|
keyColor: '#89b4fa'
|
||||||
numKeyColor: '#eba0ac'
|
numKeyColor: '#eba0ac'
|
||||||
frame:
|
frame:
|
||||||
title:
|
title:
|
||||||
fgColor: '#94e2d5'
|
fgColor: '#94e2d5'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
highlightColor: '#f5c2e7'
|
highlightColor: '#f5c2e7'
|
||||||
counterColor: '#f9e2af'
|
counterColor: '#f9e2af'
|
||||||
filterColor: '#a6e3a1'
|
filterColor: '#a6e3a1'
|
||||||
@ -29,8 +29,8 @@ k9s:
|
|||||||
keyColor: '#89b4fa'
|
keyColor: '#89b4fa'
|
||||||
numKeyColor: '#eba0ac'
|
numKeyColor: '#eba0ac'
|
||||||
crumbs:
|
crumbs:
|
||||||
fgColor: '#1e1e2e'
|
fgColor: '#101018'
|
||||||
bgColor: default
|
bgColor: '#eba0ac'
|
||||||
activeColor: '#f2cdcd'
|
activeColor: '#f2cdcd'
|
||||||
status:
|
status:
|
||||||
newColor: '#89b4fa'
|
newColor: '#89b4fa'
|
||||||
@ -47,24 +47,24 @@ k9s:
|
|||||||
views:
|
views:
|
||||||
table:
|
table:
|
||||||
fgColor: '#cdd6f4'
|
fgColor: '#cdd6f4'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
cursorFgColor: '#313244'
|
cursorFgColor: '#313244'
|
||||||
cursorBgColor: '#45475a'
|
cursorBgColor: '#45475a'
|
||||||
markColor: '#f5e0dc'
|
markColor: '#f5e0dc'
|
||||||
header:
|
header:
|
||||||
fgColor: '#f9e2af'
|
fgColor: '#f9e2af'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
sorterColor: '#89dceb'
|
sorterColor: '#89dceb'
|
||||||
xray:
|
xray:
|
||||||
fgColor: '#cdd6f4'
|
fgColor: '#cdd6f4'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
cursorColor: '#45475a'
|
cursorColor: '#45475a'
|
||||||
cursorTextColor: '#1e1e2e'
|
cursorTextColor: '#101018'
|
||||||
graphicColor: '#f5c2e7'
|
graphicColor: '#f5c2e7'
|
||||||
charts:
|
charts:
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
chartBgColor: default
|
chartBgColor: '#101018'
|
||||||
dialBgColor: default
|
dialBgColor: '#101018'
|
||||||
defaultDialColors: ['#a6e3a1', '#f38ba8']
|
defaultDialColors: ['#a6e3a1', '#f38ba8']
|
||||||
defaultChartColors: ['#a6e3a1', '#f38ba8']
|
defaultChartColors: ['#a6e3a1', '#f38ba8']
|
||||||
resourceColors:
|
resourceColors:
|
||||||
@ -76,18 +76,18 @@ k9s:
|
|||||||
colonColor: '#a6adc8'
|
colonColor: '#a6adc8'
|
||||||
logs:
|
logs:
|
||||||
fgColor: '#cdd6f4'
|
fgColor: '#cdd6f4'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
indicator:
|
indicator:
|
||||||
fgColor: '#b4befe'
|
fgColor: '#b4befe'
|
||||||
bgColor: default
|
bgColor: '#101018'
|
||||||
toggleOnColor: '#a6e3a1'
|
toggleOnColor: '#a6e3a1'
|
||||||
toggleOffColor: '#a6adc8'
|
toggleOffColor: '#a6adc8'
|
||||||
dialog:
|
dialog:
|
||||||
fgColor: '#f9e2af'
|
fgColor: '#f9e2af'
|
||||||
bgColor: default
|
bgColor: '#9399b2'
|
||||||
buttonFgColor: '#1e1e2e'
|
buttonFgColor: '#101018'
|
||||||
buttonBgColor: default
|
buttonBgColor: '#7f849c'
|
||||||
buttonFocusFgColor: '#1e1e2e'
|
buttonFocusFgColor: '#101018'
|
||||||
buttonFocusBgColor: '#f5c2e7'
|
buttonFocusBgColor: '#f5c2e7'
|
||||||
labelFgColor: '#f5e0dc'
|
labelFgColor: '#f5e0dc'
|
||||||
fieldFgColor: '#cdd6f4'
|
fieldFgColor: '#cdd6f4'
|
||||||
|
|||||||
@ -1 +0,0 @@
|
|||||||
░
|
|
||||||
@ -1,17 +0,0 @@
|
|||||||
[tools]
|
|
||||||
node = "22"
|
|
||||||
ruby = "3"
|
|
||||||
python = "3"
|
|
||||||
java = "openjdk-17.0.2"
|
|
||||||
uv = "latest"
|
|
||||||
|
|
||||||
[tasks]
|
|
||||||
gcloud-login = "gcloud auth application-default login"
|
|
||||||
orm-setup = "python -m pip install keyring keyrings.google-artifactregistry-auth --index-url https://pypi.org/simple/ && python -m pip install orm-cli --index-url https://us-central1-python.pkg.dev/common-build/pypi/simple/"
|
|
||||||
|
|
||||||
[settings]
|
|
||||||
python.uv_venv_auto = true
|
|
||||||
|
|
||||||
# Add the following two lines to a .mise.toml in a project to enable automatic venv creation
|
|
||||||
# [env]
|
|
||||||
# _.python.venv = { path = ".venv", create = true, uv_create_args = ["--system-site-packages"] }
|
|
||||||
@ -1,32 +1,29 @@
|
|||||||
{
|
{
|
||||||
"avante.nvim": { "branch": "main", "commit": "56951378f10b25f8bb0f5bb516b8d778a1e498a7" },
|
"avante.nvim": { "branch": "main", "commit": "4e0a8620b68a0de7a0ec67a0a7503863500f6d29" },
|
||||||
"barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" },
|
"barbar.nvim": { "branch": "master", "commit": "53b5a2f34b68875898f0531032fbf090e3952ad7" },
|
||||||
"blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" },
|
"blink.cmp": { "branch": "main", "commit": "bae4bae0eedd1fa55f34b685862e94a222d5c6f8" },
|
||||||
"catppuccin": { "branch": "main", "commit": "30fa4d122d9b22ad8b2e0ab1b533c8c26c4dde86" },
|
"catppuccin": { "branch": "main", "commit": "3aaf3ab60221bca8edb1354e41bd514a22c89de2" },
|
||||||
"conform.nvim": { "branch": "master", "commit": "b4aab989db276993ea5dcb78872be494ce546521" },
|
"conform.nvim": { "branch": "master", "commit": "973f3cb73887d510321653044791d7937c7ec0fa" },
|
||||||
"dropbar.nvim": { "branch": "master", "commit": "3460930700ca67b4590a69ac3f1d65d5f9658fb6" },
|
"dropbar.nvim": { "branch": "master", "commit": "418897fe7828b2749ca78056ec8d8ad43136b695" },
|
||||||
"fidget.nvim": { "branch": "main", "commit": "4d5858bd4c471c895060e1b9f3575f1551184dc5" },
|
"fidget.nvim": { "branch": "main", "commit": "2cb5edb2dd6700a958a446b20bb2be04d318da9d" },
|
||||||
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
|
"gitsigns.nvim": { "branch": "main", "commit": "6e3c66548035e50db7bd8e360a29aec6620c3641" },
|
||||||
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
"lazy.nvim": { "branch": "main", "commit": "6c3bda4aca61a13a9c63f1c1d1b16b9d3be90d7a" },
|
||||||
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
|
"lazydev.nvim": { "branch": "main", "commit": "2367a6c0a01eb9edb0464731cc0fb61ed9ab9d2c" },
|
||||||
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
"lualine.nvim": { "branch": "master", "commit": "b8c23159c0161f4b89196f74ee3a6d02cdc3a955" },
|
||||||
"mason-lspconfig.nvim": { "branch": "main", "commit": "7f9a39fcd2ac6e979001f857727d606888f5909c" },
|
"mason-lspconfig.nvim": { "branch": "main", "commit": "7f0bf635082bb9b7d2b37766054526a6ccafdb85" },
|
||||||
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
|
"mason-tool-installer.nvim": { "branch": "main", "commit": "517ef5994ef9d6b738322664d5fdd948f0fdeb46" },
|
||||||
"mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" },
|
"mason.nvim": { "branch": "main", "commit": "7dc4facca9702f95353d5a1f87daf23d78e31c2a" },
|
||||||
"mini.nvim": { "branch": "main", "commit": "d12b7c1b4dccc5245a3d2b7bc73da6dd910af2c0" },
|
"mini.nvim": { "branch": "main", "commit": "0e9d1f972a91acf5a0513319099ba41f7c09c30a" },
|
||||||
"neo-tree.nvim": { "branch": "main", "commit": "ed057048a281b418d5318dd5153f9486daa517a3" },
|
"neo-tree.nvim": { "branch": "main", "commit": "46fa0c22ca39e05fe15744102d21feb07fe9a94a" },
|
||||||
"neogen": { "branch": "main", "commit": "d7f9461727751fb07f82011051338a9aba07581d" },
|
|
||||||
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
"nui.nvim": { "branch": "main", "commit": "de740991c12411b663994b2860f1a4fd0937c130" },
|
||||||
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
"nvim-autopairs": { "branch": "master", "commit": "23320e75953ac82e559c610bec5a90d9c6dfa743" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "bc09aa236d7d2af66f56a5a35d0577588eca7800" },
|
"nvim-lspconfig": { "branch": "master", "commit": "45ff1914044de7dbd4cd85053dc09f47312a2f4d" },
|
||||||
"nvim-notify": { "branch": "master", "commit": "8701bece920b38ea289b457f902e2ad184131a5d" },
|
"nvim-notify": { "branch": "master", "commit": "397c7c1184745fca649e5104de659e6392ef5a4d" },
|
||||||
"nvim-surround": { "branch": "main", "commit": "a868c256c861044beb9794b4dd126480dcdfbdad" },
|
"nvim-surround": { "branch": "main", "commit": "c271c9082886a24866353764cf96c9d957e95b2b" },
|
||||||
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
|
||||||
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
"nvim-treesitter-textobjects": { "branch": "master", "commit": "71385f191ec06ffc60e80e6b0c9a9d5daed4824c" },
|
||||||
"nvim-web-devicons": { "branch": "master", "commit": "6e51ca170563330e063720449c21f43e27ca0bc1" },
|
"nvim-web-devicons": { "branch": "master", "commit": "c2599a81ecabaae07c49ff9b45dcd032a8d90f1a" },
|
||||||
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
"plenary.nvim": { "branch": "master", "commit": "b9fd5226c2f76c951fc8ed5923d85e4de065e509" },
|
||||||
"project-cli-commands.nvim": { "branch": "main", "commit": "9a2a2fdfd38a3d71cc927e3a398ac0ddfa846b3d" },
|
|
||||||
"schemastore.nvim": { "branch": "main", "commit": "d522e3ed6ed2c7bed7ebe1e42615e79b3aabfe65" },
|
|
||||||
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
|
||||||
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
"telescope-ui-select.nvim": { "branch": "master", "commit": "6e51d7da30bd139a6950adf2a47fda6df9fa06d2" },
|
||||||
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
"telescope.nvim": { "branch": "master", "commit": "b4da76be54691e854d3e0e02c36b0245f945c2c7" },
|
||||||
|
|||||||
@ -1,31 +0,0 @@
|
|||||||
return {
|
|
||||||
settings = {
|
|
||||||
json = {
|
|
||||||
schemas = require("schemastore").json.schemas({
|
|
||||||
select = {
|
|
||||||
"devcontainer.json",
|
|
||||||
"devcontainer-feature.json",
|
|
||||||
},
|
|
||||||
replace = {
|
|
||||||
["devcontainer.json"] = {
|
|
||||||
description = "devcontainer.json overridden",
|
|
||||||
-- fileMatch has to be a table
|
|
||||||
fileMatch = { "devcontainer.json" },
|
|
||||||
name = "devcontainer.json",
|
|
||||||
url = "https://raw.githubusercontent.com/devcontainers/spec/refs/heads/main/schemas/devContainer.base.schema.json",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
extra = {
|
|
||||||
{
|
|
||||||
description = "devcontainer-feature.json",
|
|
||||||
-- fileMatch has to be a table
|
|
||||||
fileMatch = { "devcontainer-feature.json" },
|
|
||||||
name = "devcontainer-feature.json",
|
|
||||||
url = "https://raw.githubusercontent.com/devcontainers/spec/refs/heads/main/schemas/devContainerFeature.schema.json",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
validate = { enable = true },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@ -1,9 +0,0 @@
|
|||||||
return {
|
|
||||||
capabilities = {
|
|
||||||
workspace = {
|
|
||||||
didChangeWatchedFiles = {
|
|
||||||
dynamicRegistration = true,
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@ -1,25 +0,0 @@
|
|||||||
return {
|
|
||||||
settings = {
|
|
||||||
yaml = {
|
|
||||||
schemaStore = {
|
|
||||||
enable = false,
|
|
||||||
url = "",
|
|
||||||
},
|
|
||||||
schemas = require("schemastore").yaml.schemas({
|
|
||||||
select = {
|
|
||||||
"Ansible Inventory",
|
|
||||||
"Ansible Rulebook",
|
|
||||||
"Ansible Collection Galaxy",
|
|
||||||
"Ansible Playbook",
|
|
||||||
"Ansible Tasks File",
|
|
||||||
"Ansible Requirements",
|
|
||||||
"Ansible Vars File",
|
|
||||||
"kustomization.yaml",
|
|
||||||
"docker-compose.yml",
|
|
||||||
"GitHub Workflow",
|
|
||||||
},
|
|
||||||
}),
|
|
||||||
validate = { enable = true },
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
|
||||||
@ -17,7 +17,6 @@ local filetype_maps = {
|
|||||||
{ pattern = "*.tf", ft = "terraform" },
|
{ pattern = "*.tf", ft = "terraform" },
|
||||||
{ pattern = "*.pro", ft = "progruard" },
|
{ pattern = "*.pro", ft = "progruard" },
|
||||||
{ pattern = "*.mjml", ft = "html" },
|
{ pattern = "*.mjml", ft = "html" },
|
||||||
{ pattern = ".swift-format", ft = "json" },
|
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, mapping in ipairs(filetype_maps) do
|
for _, mapping in ipairs(filetype_maps) do
|
||||||
|
|||||||
@ -2,13 +2,21 @@ local keymap = vim.keymap.set
|
|||||||
|
|
||||||
-- Normal mode
|
-- Normal mode
|
||||||
keymap("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
keymap("n", "<Esc>", "<cmd>nohlsearch<CR>")
|
||||||
|
keymap("n", "<leader>f", vim.diagnostic.setloclist, { desc = "Open diagnostic quick[f]ix list" })
|
||||||
keymap("n", "<leader>w", "<cmd>w!<CR>", { desc = "[w]rite current file", silent = true })
|
keymap("n", "<leader>w", "<cmd>w!<CR>", { desc = "[w]rite current file", silent = true })
|
||||||
keymap("n", "<leader>q", "<cmd>q<CR>", { desc = "[q]uit current buffer", silent = true })
|
keymap("n", "<leader>q", "<cmd>q<CR>", { desc = "[q]uit current buffer", silent = true })
|
||||||
keymap("n", "<leader>Q", "<cmd>qa<CR>", { desc = "[Q]uit completely", silent = true })
|
keymap("n", "<leader>Q", "<cmd>qa<CR>", { desc = "[Q]uit completely", silent = true })
|
||||||
|
keymap("n", "<Leader>fb", ":lua vim.lsp.buf.format()<CR>", { desc = "[f]ormat [b]uffer", silent = true })
|
||||||
keymap("n", "<C-h>", "<C-w><C-h>", { desc = "Move focus to the left window" })
|
keymap("n", "<C-h>", "<C-w><C-h>", { desc = "Move focus to the left window" })
|
||||||
keymap("n", "<C-l>", "<C-w><C-l>", { desc = "Move focus to the right window" })
|
keymap("n", "<C-l>", "<C-w><C-l>", { desc = "Move focus to the right window" })
|
||||||
keymap("n", "<C-j>", "<C-w><C-j>", { desc = "Move focus to the lower window" })
|
keymap("n", "<C-j>", "<C-w><C-j>", { desc = "Move focus to the lower window" })
|
||||||
keymap("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper window" })
|
keymap("n", "<C-k>", "<C-w><C-k>", { desc = "Move focus to the upper window" })
|
||||||
|
keymap(
|
||||||
|
"n",
|
||||||
|
"gd",
|
||||||
|
"<cmd>lua vim.lsp.buf.definition()<CR>",
|
||||||
|
{ desc = "[g]o to [d]efinition", noremap = true, silent = true }
|
||||||
|
)
|
||||||
|
|
||||||
-- Visual mode
|
-- Visual mode
|
||||||
keymap("v", "<Leader>p", '"_dP', { desc = "[p]aste without overwriting default register" })
|
keymap("v", "<Leader>p", '"_dP', { desc = "[p]aste without overwriting default register" })
|
||||||
|
|||||||
@ -1,47 +1,47 @@
|
|||||||
local opt = vim.opt
|
local opt = vim.opt
|
||||||
|
|
||||||
-- Columns and gutters
|
-- Columns and gutters
|
||||||
opt.colorcolumn = "80,120" -- Highlight columns 80, 120
|
opt.colorcolumn = "80" -- Highlight column 80
|
||||||
opt.number = true -- Line numbers in the gutter
|
opt.number = true -- Line numbers in the gutter
|
||||||
opt.relativenumber = true -- Relative line numbers in the gutter
|
opt.relativenumber = true -- Relative line numbers in the gutter
|
||||||
opt.signcolumn = "yes:1" -- Sign column in the gutter always visible
|
opt.signcolumn = "yes:1" -- Sign column in the gutter always visible
|
||||||
|
|
||||||
-- Indentation
|
-- Indentation
|
||||||
opt.autoindent = true -- Enable auto-indentation
|
opt.autoindent = true -- Enable auto-indentation
|
||||||
opt.breakindent = true -- ?
|
opt.breakindent = true -- ?
|
||||||
opt.expandtab = true -- Default to spaces instead of tabs
|
opt.expandtab = true -- Default to spaces instead of tabs
|
||||||
opt.shiftround = true -- Round indent to multiple of shift-width
|
opt.shiftround = true -- Round indent to multiple of shift-width
|
||||||
opt.shiftwidth = 4 -- Number of spaces when auto-indenting
|
opt.shiftwidth = 4 -- Number of spaces when auto-indenting
|
||||||
opt.softtabstop = 4 -- Number of spaces for a tab when editing
|
opt.softtabstop = 4 -- Number of spaces for a tab when editing
|
||||||
opt.tabstop = 4 -- Number of spaces for a tab
|
opt.tabstop = 4 -- Number of spaces for a tab
|
||||||
|
|
||||||
-- Display and adornments
|
-- Display and adornments
|
||||||
opt.cursorline = true -- Highlight current line
|
opt.cursorline = true -- Highlight current line
|
||||||
opt.guifont = "Inconsolata Patched G:h12"
|
opt.guifont = "Inconsolata Patched G:h12"
|
||||||
opt.list = true -- Show whitespace characters
|
opt.list = true -- Show whitespace characters
|
||||||
opt.listchars = { tab = "» ", trail = "○", nbsp = "␣", lead = "•" }
|
opt.listchars = { tab = "» ", trail = "○", nbsp = "␣", lead = "•" }
|
||||||
opt.scrolloff = 3 -- Show 3 lines above and below cursor
|
opt.scrolloff = 3 -- Show 3 lines above and below cursor
|
||||||
opt.showmode = false -- Don't show the mode since it's in our statusline
|
opt.showmode = false -- Don't show the mode since it's in our statusline
|
||||||
opt.termguicolors = true -- Use true terminal colors
|
opt.termguicolors = true -- Use true terminal colors
|
||||||
opt.virtualedit = "block"
|
opt.virtualedit = "block"
|
||||||
opt.winborder = "rounded" -- Rounded borders for windows
|
opt.winborder = "rounded" -- Rounded borders for windows
|
||||||
|
|
||||||
-- Behavior
|
-- Behavior
|
||||||
opt.confirm = true
|
opt.confirm = true
|
||||||
opt.ignorecase = true -- Ignore case in search and commands
|
opt.ignorecase = true -- Ignore case in search and commands
|
||||||
opt.inccommand = "split" -- Preview substitutions live
|
opt.inccommand = "split" -- Preview substitutions live
|
||||||
opt.mouse = "a" -- Turn on mouse support
|
opt.mouse = "a" -- Turn on mouse support
|
||||||
opt.smartcase = true -- ?
|
opt.smartcase = true -- ?
|
||||||
opt.splitbelow = true
|
opt.splitbelow = true
|
||||||
opt.splitright = true
|
opt.splitright = true
|
||||||
opt.timeoutlen = 1000 -- Command timeout length
|
opt.timeoutlen = 1000 -- Command timeout length
|
||||||
opt.undofile = true
|
opt.undofile = true
|
||||||
opt.updatetime = 250 -- ?
|
opt.updatetime = 250 -- ?
|
||||||
|
|
||||||
-- Clipboard
|
-- Clipboard
|
||||||
-- Sync clipboard between OS and Neovim.
|
-- Sync clipboard between OS and Neovim.
|
||||||
vim.schedule(function()
|
vim.schedule(function()
|
||||||
vim.opt.clipboard = "unnamedplus"
|
vim.opt.clipboard = "unnamedplus"
|
||||||
end)
|
end)
|
||||||
|
|
||||||
-- Features
|
-- Features
|
||||||
|
|||||||
@ -5,12 +5,16 @@ return {
|
|||||||
config = function()
|
config = function()
|
||||||
require("catppuccin").setup({
|
require("catppuccin").setup({
|
||||||
flavour = "auto",
|
flavour = "auto",
|
||||||
transparent_background = true,
|
|
||||||
background = {
|
background = {
|
||||||
light = "latte",
|
light = "latte",
|
||||||
dark = "mocha",
|
dark = "mocha",
|
||||||
},
|
},
|
||||||
term_colors = vim.g.neovide,
|
term_colors = vim.g.neovide,
|
||||||
|
color_overrides = {
|
||||||
|
mocha = {
|
||||||
|
base = "#101018",
|
||||||
|
},
|
||||||
|
},
|
||||||
integrations = {
|
integrations = {
|
||||||
blink_cmp = true,
|
blink_cmp = true,
|
||||||
diffview = true,
|
diffview = true,
|
||||||
|
|||||||
@ -3,7 +3,6 @@ return {
|
|||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
opts = {
|
opts = {
|
||||||
delay = 0,
|
delay = 0,
|
||||||
preset = "helix",
|
|
||||||
icons = {
|
icons = {
|
||||||
mappings = vim.g.have_nerd_font,
|
mappings = vim.g.have_nerd_font,
|
||||||
keys = vim.g.have_nerd_font,
|
keys = vim.g.have_nerd_font,
|
||||||
@ -11,13 +10,10 @@ return {
|
|||||||
|
|
||||||
-- Document existing key chains
|
-- Document existing key chains
|
||||||
spec = {
|
spec = {
|
||||||
{ "<leader>a", group = "[a]vante" },
|
{ "<leader>s", group = "[S]earch" },
|
||||||
{ "<leader>g", group = "[g]it" },
|
{ "<leader>e", group = "[E]xplorer/Tree" },
|
||||||
{ "<leader>l", group = "[l]sp" },
|
{ "<leader>t", group = "[T]oggle" },
|
||||||
{ "<leader>lg", group = "[l]sp [g]oto" },
|
{ "<leader>g", group = "[G]oto/Actions" },
|
||||||
{ "<leader>ls", group = "[l]sp [s]ymbols" },
|
|
||||||
{ "<leader>s", group = "[s]earch" },
|
|
||||||
{ "<leader>t", group = "[t]oggle" },
|
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -34,33 +34,33 @@ return {
|
|||||||
|
|
||||||
-- Define these keys here since they require access to runtime values
|
-- Define these keys here since they require access to runtime values
|
||||||
local builtin = require("telescope.builtin")
|
local builtin = require("telescope.builtin")
|
||||||
local map = function(keys, func, desc)
|
keymap("n", "<leader>sh", builtin.help_tags, { desc = "[S]earch [H]elp" })
|
||||||
vim.keymap.set("n", "<leader>" .. keys, func, { desc = "[s]earch " .. desc })
|
keymap("n", "<leader>sk", builtin.keymaps, { desc = "[S]earch [K]eymaps" })
|
||||||
end
|
keymap("n", "<leader>sf", builtin.find_files, { desc = "[S]earch [F]iles" })
|
||||||
map("<leader>", builtin.find_files, "all files ([ ])")
|
keymap("n", "<leader>ss", builtin.builtin, { desc = "[S]earch [S]elect Telescope" })
|
||||||
map("sb", builtin.buffers, "[b]uffers")
|
keymap("n", "<leader>sw", builtin.grep_string, { desc = "[S]earch current [W]ord" })
|
||||||
map("sd", builtin.diagnostics, "[d]iagnostics")
|
keymap("n", "<leader>sg", builtin.live_grep, { desc = "[S]earch by [G]rep" })
|
||||||
map("sg", builtin.live_grep, "[g]rep")
|
keymap("n", "<leader>sd", builtin.diagnostics, { desc = "[S]earch [D]iagnostics" })
|
||||||
map("sh", builtin.help_tags, "[h]elp")
|
keymap("n", "<leader>sr", builtin.resume, { desc = "[S]earch [R]esume" })
|
||||||
map("sk", builtin.keymaps, "[k]eymaps")
|
keymap("n", "<leader>s.", builtin.oldfiles, { desc = '[S]earch Recent Files ("." for repeat)' })
|
||||||
map("sn", function()
|
keymap("n", "<leader><leader>", builtin.buffers, { desc = "[ ] Find existing buffers" })
|
||||||
builtin.find_files({ cwd = vim.fn.stdpath("config") })
|
|
||||||
end, "[n]eovim files")
|
keymap("n", "<leader>/", function()
|
||||||
map("sr", builtin.resume, "[r]esume")
|
|
||||||
map("st", builtin.builtin, "[t]elescope")
|
|
||||||
map("sw", builtin.grep_string, "current [w]ord")
|
|
||||||
map("s.", builtin.oldfiles, "recent files ([.] for repeat)")
|
|
||||||
map("/", function()
|
|
||||||
builtin.current_buffer_fuzzy_find(require("telescope.themes").get_dropdown({
|
builtin.current_buffer_fuzzy_find(require("telescope.themes").get_dropdown({
|
||||||
winblend = 10,
|
winblend = 10,
|
||||||
previewer = false,
|
previewer = false,
|
||||||
}))
|
}))
|
||||||
end, "current buffer fuzzy ([/])")
|
end, { desc = "[/] Fuzzily search in current buffer" })
|
||||||
map("s/", function()
|
|
||||||
|
keymap("n", "<leader>s/", function()
|
||||||
builtin.live_grep({
|
builtin.live_grep({
|
||||||
grep_open_files = true,
|
grep_open_files = true,
|
||||||
prompt_title = "Live Grep in Open Files",
|
prompt_title = "Live Grep in Open Files",
|
||||||
})
|
})
|
||||||
end, "in open files ([/])")
|
end, { desc = "[S]earch [/] in Open Files" })
|
||||||
|
|
||||||
|
keymap("n", "<leader>sn", function()
|
||||||
|
builtin.find_files({ cwd = vim.fn.stdpath("config") })
|
||||||
|
end, { desc = "[S]earch [N]eovim files" })
|
||||||
end,
|
end,
|
||||||
}
|
}
|
||||||
|
|||||||
@ -18,7 +18,6 @@ return {
|
|||||||
hide_gitignore = false,
|
hide_gitignore = false,
|
||||||
never_show = {
|
never_show = {
|
||||||
"node_modules",
|
"node_modules",
|
||||||
".build",
|
|
||||||
".DS_Store",
|
".DS_Store",
|
||||||
"thumbs.db",
|
"thumbs.db",
|
||||||
".git",
|
".git",
|
||||||
|
|||||||
@ -1,42 +0,0 @@
|
|||||||
return {
|
|
||||||
"dimaportenko/project-cli-commands.nvim",
|
|
||||||
dependencies = {
|
|
||||||
"akinsho/toggleterm.nvim",
|
|
||||||
"nvim-telescope/telescope.nvim",
|
|
||||||
},
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>sc",
|
|
||||||
"<cmd>Telescope project_cli_commands open<cr>",
|
|
||||||
desc = "[s]earch [c]ommands",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
config = function()
|
|
||||||
local OpenActions = require("project_cli_commands.open_actions")
|
|
||||||
local RunActions = require("project_cli_commands.actions")
|
|
||||||
|
|
||||||
require("project_cli_commands").setup({
|
|
||||||
-- Key mappings bound inside the telescope window
|
|
||||||
running_telescope_mapping = {
|
|
||||||
["<C-c>"] = RunActions.exit_terminal,
|
|
||||||
["<C-f>"] = RunActions.open_float,
|
|
||||||
["<C-v>"] = RunActions.open_vertical,
|
|
||||||
["<C-h>"] = RunActions.open_horizontal,
|
|
||||||
},
|
|
||||||
open_telescope_mapping = {
|
|
||||||
{ mode = "i", key = "<CR>", action = OpenActions.execute_script_vertical },
|
|
||||||
{ mode = "n", key = "<CR>", action = OpenActions.execute_script_vertical },
|
|
||||||
{ mode = "i", key = "<C-h>", action = OpenActions.execute_script },
|
|
||||||
{ mode = "n", key = "<C-h>", action = OpenActions.execute_script },
|
|
||||||
{ mode = "i", key = "<C-i>", action = OpenActions.execute_script_with_input },
|
|
||||||
{ mode = "n", key = "<C-i>", action = OpenActions.execute_script_with_input },
|
|
||||||
{ mode = "i", key = "<C-c>", action = OpenActions.copy_command_clipboard },
|
|
||||||
{ mode = "n", key = "<C-c>", action = OpenActions.copy_command_clipboard },
|
|
||||||
{ mode = "i", key = "<C-f>", action = OpenActions.execute_script_float },
|
|
||||||
{ mode = "n", key = "<C-f>", action = OpenActions.execute_script_float },
|
|
||||||
{ mode = "i", key = "<C-v>", action = OpenActions.execute_script_vertical },
|
|
||||||
{ mode = "n", key = "<C-v>", action = OpenActions.execute_script_vertical },
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
|
||||||
}
|
|
||||||
@ -1,40 +1,37 @@
|
|||||||
local mason_lsps = {
|
local servers = {
|
||||||
-- LSPs
|
-- LSPs
|
||||||
-- "jsonls",
|
"json-lsp",
|
||||||
"lua_ls",
|
"lua_ls",
|
||||||
-- "ruby_lsp",
|
"ruby_lsp",
|
||||||
-- "rubocop",
|
"rubocop",
|
||||||
-- "rust_analyzer",
|
"rust_analyzer",
|
||||||
-- "terraformls",
|
"terraformls",
|
||||||
-- "ts_ls",
|
|
||||||
-- "yamlls",
|
|
||||||
-- Formatters
|
-- Formatters
|
||||||
-- "fixjson",
|
"fixjson",
|
||||||
-- "goimports",
|
"goimports",
|
||||||
-- "hclfmt",
|
"hclfmt",
|
||||||
-- "prettierd",
|
"prettierd",
|
||||||
-- "shellharden",
|
"shellharden",
|
||||||
"stylua",
|
"stylua",
|
||||||
}
|
"yamlfix",
|
||||||
|
--- Linters
|
||||||
local non_mason_lsps = {
|
"swiftlint",
|
||||||
"sourcekit",
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return {
|
return {
|
||||||
-- {
|
{
|
||||||
-- "WhoIsSethDaniel/mason-tool-installer.nvim",
|
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||||
-- dependencies = {
|
dependencies = {
|
||||||
-- "mason-org/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
-- },
|
},
|
||||||
-- opts = {
|
opts = {
|
||||||
-- ensure_installed = mason_lsps,
|
ensure_installed = servers,
|
||||||
-- },
|
},
|
||||||
-- },
|
},
|
||||||
{
|
{
|
||||||
"mason-org/mason-lspconfig.nvim",
|
"mason-org/mason-lspconfig.nvim",
|
||||||
opts = {
|
opts = {
|
||||||
ensure_installed = mason_lsps,
|
ensure_installed = {},
|
||||||
automatic_enable = true,
|
automatic_enable = true,
|
||||||
automatic_installation = false,
|
automatic_installation = false,
|
||||||
},
|
},
|
||||||
@ -51,36 +48,28 @@ return {
|
|||||||
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
"WhoIsSethDaniel/mason-tool-installer.nvim",
|
||||||
{ "j-hui/fidget.nvim", opts = {} },
|
{ "j-hui/fidget.nvim", opts = {} },
|
||||||
"saghen/blink.cmp",
|
"saghen/blink.cmp",
|
||||||
"b0o/schemastore.nvim",
|
|
||||||
},
|
},
|
||||||
config = function()
|
config = function()
|
||||||
for _, server in ipairs(non_mason_lsps) do
|
|
||||||
vim.lsp.enable(server)
|
|
||||||
end
|
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("LspAttach", {
|
vim.api.nvim_create_autocmd("LspAttach", {
|
||||||
group = vim.api.nvim_create_augroup("kickstart-lsp-attach", { clear = true }),
|
group = vim.api.nvim_create_augroup("kickstart-lsp-attach", { clear = true }),
|
||||||
callback = function(event)
|
callback = function(event)
|
||||||
local map = function(keys, func, desc, mode)
|
local map = function(keys, func, desc, mode)
|
||||||
vim.keymap.set(
|
vim.keymap.set(mode or "n", keys, func, { buffer = event.buf, desc = "LSP: " .. desc })
|
||||||
mode or "n",
|
|
||||||
"<leader>" .. keys,
|
|
||||||
func,
|
|
||||||
{ buffer = event.buf, desc = "[l]sp: " .. desc }
|
|
||||||
)
|
|
||||||
end
|
end
|
||||||
|
|
||||||
map("la", vim.lsp.buf.code_action, "[a]ctions", { "n", "x" })
|
map("grn", vim.lsp.buf.rename, "[R]e[n]ame")
|
||||||
map("lgr", require("telescope.builtin").lsp_references, "[g]oto [r]eferences")
|
map("ga", vim.lsp.buf.code_action, "[g]oto [a]ction", { "n", "x" })
|
||||||
map("lgi", require("telescope.builtin").lsp_implementations, "[g]oto [i]mplementation")
|
map("gtr", require("telescope.builtin").lsp_references, "[g]o[t]o [r]eferences")
|
||||||
map("lgf", require("telescope.builtin").lsp_definitions, "[g]oto de[f]inition")
|
map("gti", require("telescope.builtin").lsp_implementations, "[g]o[t]o [i]mplementation")
|
||||||
map("lgd", vim.lsp.buf.declaration, "[g]oto [d]eclaration")
|
map("gtd", require("telescope.builtin").lsp_definitions, "[g]o[t]o [d]efinition")
|
||||||
map("lgt", require("telescope.builtin").lsp_type_definitions, "[g]oto [t]ype definition")
|
map("gtD", vim.lsp.buf.declaration, "[g]o[t]o [D]eclaration")
|
||||||
map("lr", vim.lsp.buf.rename, "[r]ename")
|
map("gtt", require("telescope.builtin").lsp_type_definitions, "[g]o[t]o [t]ype Definition")
|
||||||
map("lsb", require("telescope.builtin").lsp_document_symbols, "[s]ymbols in [b]uffer")
|
map("gsb", require("telescope.builtin").lsp_document_symbols, "[g]oto [s]ymbols in [b]uffer")
|
||||||
map("lsw", require("telescope.builtin").lsp_dynamic_workspace_symbols, "[s]ymbols in [w]orkspace")
|
map(
|
||||||
map("lhs", "<cmd>LspInfo<CR>", "[h]ealth [s]tatus")
|
"gsw",
|
||||||
map("lhr", "<cmd>LspRestart<CR>", "[h]ealth [r]estart")
|
require("telescope.builtin").lsp_dynamic_workspace_symbols,
|
||||||
|
"[g]oto [s]ymbols in [w]orkspace"
|
||||||
|
)
|
||||||
|
|
||||||
local client = vim.lsp.get_client_by_id(event.data.client_id)
|
local client = vim.lsp.get_client_by_id(event.data.client_id)
|
||||||
local augroup = vim.api.nvim_create_augroup
|
local augroup = vim.api.nvim_create_augroup
|
||||||
@ -119,32 +108,40 @@ return {
|
|||||||
end
|
end
|
||||||
end,
|
end,
|
||||||
})
|
})
|
||||||
vim.diagnostic.config({
|
|
||||||
severity_sort = true,
|
|
||||||
float = { border = "rounded", source = "if_many" },
|
|
||||||
underline = { severity = vim.diagnostic.severity.ERROR },
|
|
||||||
signs = vim.g.have_nerd_font and {
|
|
||||||
text = {
|
|
||||||
[vim.diagnostic.severity.ERROR] = " ",
|
|
||||||
[vim.diagnostic.severity.WARN] = " ",
|
|
||||||
[vim.diagnostic.severity.INFO] = " ",
|
|
||||||
[vim.diagnostic.severity.HINT] = " ",
|
|
||||||
},
|
|
||||||
} or {},
|
|
||||||
virtual_text = {
|
|
||||||
source = "if_many",
|
|
||||||
spacing = 2,
|
|
||||||
format = function(diagnostic)
|
|
||||||
local diagnostic_message = {
|
|
||||||
[vim.diagnostic.severity.ERROR] = diagnostic.message,
|
|
||||||
[vim.diagnostic.severity.WARN] = diagnostic.message,
|
|
||||||
[vim.diagnostic.severity.INFO] = diagnostic.message,
|
|
||||||
[vim.diagnostic.severity.HINT] = diagnostic.message,
|
|
||||||
}
|
|
||||||
return diagnostic_message[diagnostic.severity]
|
|
||||||
end,
|
|
||||||
},
|
|
||||||
})
|
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
-- {
|
||||||
|
|
||||||
|
-- config = function()
|
||||||
|
|
||||||
|
-- -- Diagnostic Config
|
||||||
|
-- -- See :help vim.diagnostic.Opts
|
||||||
|
-- vim.diagnostic.config({
|
||||||
|
-- severity_sort = true,
|
||||||
|
-- float = { border = "rounded", source = "if_many" },
|
||||||
|
-- underline = { severity = vim.diagnostic.severity.ERROR },
|
||||||
|
-- signs = vim.g.have_nerd_font and {
|
||||||
|
-- text = {
|
||||||
|
-- [vim.diagnostic.severity.ERROR] = " ",
|
||||||
|
-- [vim.diagnostic.severity.WARN] = " ",
|
||||||
|
-- [vim.diagnostic.severity.INFO] = " ",
|
||||||
|
-- [vim.diagnostic.severity.HINT] = " ",
|
||||||
|
-- },
|
||||||
|
-- } or {},
|
||||||
|
-- virtual_text = {
|
||||||
|
-- source = "if_many",
|
||||||
|
-- spacing = 2,
|
||||||
|
-- format = function(diagnostic)
|
||||||
|
-- local diagnostic_message = {
|
||||||
|
-- [vim.diagnostic.severity.ERROR] = diagnostic.message,
|
||||||
|
-- [vim.diagnostic.severity.WARN] = diagnostic.message,
|
||||||
|
-- [vim.diagnostic.severity.INFO] = diagnostic.message,
|
||||||
|
-- [vim.diagnostic.severity.HINT] = diagnostic.message,
|
||||||
|
-- }
|
||||||
|
-- return diagnostic_message[diagnostic.severity]
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
|
-- })
|
||||||
|
-- end,
|
||||||
|
-- },
|
||||||
|
|||||||
@ -4,12 +4,12 @@ return {
|
|||||||
cmd = { "ConformInfo" },
|
cmd = { "ConformInfo" },
|
||||||
keys = {
|
keys = {
|
||||||
{
|
{
|
||||||
"<leader>lf",
|
"<leader>f",
|
||||||
function()
|
function()
|
||||||
require("conform").format({ async = true, lsp_format = "fallback" })
|
require("conform").format({ async = true, lsp_format = "fallback" })
|
||||||
end,
|
end,
|
||||||
mode = "",
|
mode = "",
|
||||||
desc = "[l]sp: [f]ormat buffer",
|
desc = "[F]ormat buffer",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
opts = {
|
opts = {
|
||||||
@ -30,17 +30,21 @@ return {
|
|||||||
hcl = { "terragrunt_hclfmt" },
|
hcl = { "terragrunt_hclfmt" },
|
||||||
html = { "prettierd" },
|
html = { "prettierd" },
|
||||||
javascript = { "prettierd" },
|
javascript = { "prettierd" },
|
||||||
json = { "fixjson", "prettierd" },
|
json = { "fixjson" },
|
||||||
lua = { "stylua" },
|
lua = { "stylua" },
|
||||||
markdown = { "prettierd" },
|
markdown = { "prettierd" },
|
||||||
ruby = { "rubocop" },
|
ruby = { "rubocop" },
|
||||||
rust = { "rustfmt" },
|
rust = { "rustfmt" },
|
||||||
sh = { "shellharden" },
|
sh = { "shellharden" },
|
||||||
swift = { "swiftformat" },
|
swift = { "swiftlint" },
|
||||||
terraform = { "terraform_fmt" },
|
terraform = { "terraform_fmt" },
|
||||||
xml = { "xmllint" },
|
xml = { "xmllint" },
|
||||||
yaml = { "prettierd" },
|
yaml = { "yamlfix" },
|
||||||
|
},
|
||||||
|
formatters = {
|
||||||
|
yamlfix = {
|
||||||
|
prepend_args = { "-c", ".yamlfix.toml" },
|
||||||
|
},
|
||||||
},
|
},
|
||||||
formatters = {},
|
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,7 +3,7 @@ return {
|
|||||||
dependencies = { "nvim-tree/nvim-web-devicons" },
|
dependencies = { "nvim-tree/nvim-web-devicons" },
|
||||||
event = "VimEnter",
|
event = "VimEnter",
|
||||||
opts = {
|
opts = {
|
||||||
extensions = { "neo-tree", "lazy", "toggleterm", "avante", "mason" },
|
extensions = { "neo-tree", "lazy", "toggleterm" },
|
||||||
options = {
|
options = {
|
||||||
theme = "catppuccin",
|
theme = "catppuccin",
|
||||||
section_separators = { left = "", right = "" },
|
section_separators = { left = "", right = "" },
|
||||||
|
|||||||
@ -1,20 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
{
|
"folke/todo-comments.nvim",
|
||||||
"folke/todo-comments.nvim",
|
event = "VimEnter",
|
||||||
event = "VimEnter",
|
dependencies = { "nvim-lua/plenary.nvim" },
|
||||||
dependencies = { "nvim-lua/plenary.nvim" },
|
opts = { signs = false },
|
||||||
opts = { signs = false },
|
|
||||||
},
|
|
||||||
{
|
|
||||||
"danymat/neogen",
|
|
||||||
config = true,
|
|
||||||
keys = {
|
|
||||||
{
|
|
||||||
"<leader>df",
|
|
||||||
"<cmd>Neogen func<CR>",
|
|
||||||
mode = "n",
|
|
||||||
desc = "[d]ocs: for [f]unc",
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
}
|
}
|
||||||
|
|||||||
@ -4,7 +4,6 @@ return {
|
|||||||
version = false,
|
version = false,
|
||||||
opts = {
|
opts = {
|
||||||
build = "make",
|
build = "make",
|
||||||
mode = "legacy",
|
|
||||||
provider = "claude",
|
provider = "claude",
|
||||||
},
|
},
|
||||||
dependencies = {
|
dependencies = {
|
||||||
|
|||||||
6
setup.sh
6
setup.sh
@ -10,14 +10,14 @@ if [[ ! -d $XDG_CONFIG_HOME ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# Symlink directories to $XDG_CONFIG_HOME.
|
# Symlink directories to $XDG_CONFIG_HOME.
|
||||||
directories=("gem" "ghostty" "git" "gnupg" "k9s" "lazygit" "mise" "neovide" "nvim" "starship" "tmux" "zed")
|
directories=("gem" "ghostty" "git" "gnupg" "k9s" "lazygit" "neovide" "nvim" "starship" "tmux" "zed")
|
||||||
for directory in "${directories[@]}"; do
|
for directory in "${directories[@]}"; do
|
||||||
if [[ -d "$XDG_CONFIG_HOME/$directory" ]]; then continue; fi
|
if [[ -d "$XDG_CONFIG_HOME/$directory" ]]; then continue; fi
|
||||||
ln -sfv "$SCRIPTPATH/$directory" "$XDG_CONFIG_HOME/$directory"
|
ln -sfv "$SCRIPTPATH/$directory" "$XDG_CONFIG_HOME/$directory"
|
||||||
done
|
done
|
||||||
|
|
||||||
zshfiles=("zshenv" "zshrc")
|
zshfiles=("zshenv" "zprofile" "zshrc")
|
||||||
for file in "${zshfiles[@]}"; do
|
for file in "${zshfiles[@]}"; do
|
||||||
if [[ -a "$HOME/.$file" && $* == *--no-force* ]]; then continue; fi
|
if [[ -a "$HOME/.$file" && $* != *--force* ]]; then continue; fi
|
||||||
ln -sfv "$SCRIPTPATH/zsh/$file" "$HOME/.$file"
|
ln -sfv "$SCRIPTPATH/zsh/$file" "$HOME/.$file"
|
||||||
done
|
done
|
||||||
|
|||||||
@ -56,19 +56,17 @@ function random_string() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
# devcontainer aliases
|
# devcontainer aliases
|
||||||
function devcup() {
|
function devconbuild() {
|
||||||
devcontainer up --workspace-folder . --remove-existing-container \
|
|
||||||
--dotfiles-repository "https://git.kree.gr/kreeger/dotfiles.git" \
|
|
||||||
--dotfiles-install-command "setup.sh"
|
|
||||||
}
|
|
||||||
function devcb() {
|
|
||||||
devcontainer build --workspace-folder .
|
devcontainer build --workspace-folder .
|
||||||
}
|
}
|
||||||
function devce() {
|
function devconup() {
|
||||||
|
devcontainer up --workspace-folder .
|
||||||
|
}
|
||||||
|
function devconexec() {
|
||||||
devcontainer exec --workspace-folder . $1
|
devcontainer exec --workspace-folder . $1
|
||||||
}
|
}
|
||||||
function devcs() {
|
function devconshell() {
|
||||||
devce /usr/bin/zsh
|
devconexec /usr/bin/zsh
|
||||||
}
|
}
|
||||||
|
|
||||||
# Dotfile update command(s)
|
# Dotfile update command(s)
|
||||||
|
|||||||
18
zsh/zprofile
18
zsh/zprofile
@ -1,11 +1,6 @@
|
|||||||
# vim: filetype=zsh
|
# vim: filetype=zsh
|
||||||
|
|
||||||
if [[ -d $HOME/.config/dotfiles/zsh ]]; then
|
SCRIPTPATH=$HOME/.config/dotfiles/zsh
|
||||||
SCRIPTPATH=$HOME/.config/dotfiles/zsh
|
|
||||||
elif [[ -d $HOME/dotfiles/zsh ]]; then
|
|
||||||
SCRIPTPATH=$HOME/dotfiles/zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
ZSH_CACHE_DIR="$HOME/.cache/zsh"
|
ZSH_CACHE_DIR="$HOME/.cache/zsh"
|
||||||
|
|
||||||
# Let GPG know which tty we're using and put in charge of SSH auth
|
# Let GPG know which tty we're using and put in charge of SSH auth
|
||||||
@ -21,17 +16,6 @@ fi
|
|||||||
if [[ -a "/opt/homebrew/bin/brew" ]]; then
|
if [[ -a "/opt/homebrew/bin/brew" ]]; then
|
||||||
eval "$(/opt/homebrew/bin/brew shellenv)"
|
eval "$(/opt/homebrew/bin/brew shellenv)"
|
||||||
fi
|
fi
|
||||||
# asdf
|
|
||||||
if [[ -d "$HOME/.asdf" ]]; then
|
|
||||||
# export PATH="$HOME/.asdf/shims:$PATH"
|
|
||||||
export ASDF_DATA_DIR=$HOME/.asdf
|
|
||||||
export ASDF_CONFIG_FILE=$HOME/.asdfrc
|
|
||||||
fi
|
|
||||||
# mise
|
|
||||||
if [[ -x "$(command -v mise)" ]]; then
|
|
||||||
export MISE_PYTHON_DEFAULT_PACKAGES_FILE=$XDG_CONFIG_HOME/mise/.default-python-packages
|
|
||||||
eval "$(mise activate zsh)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
# plugins
|
# plugins
|
||||||
mkdir -p "$ZSH_CACHE_DIR"
|
mkdir -p "$ZSH_CACHE_DIR"
|
||||||
|
|||||||
@ -1,7 +0,0 @@
|
|||||||
# vim: filetype=zsh
|
|
||||||
|
|
||||||
precmd() { vcs_info }
|
|
||||||
|
|
||||||
zstyle ':vcs_info:git:*' formats '%b '
|
|
||||||
setopt PROMPT_SUBST
|
|
||||||
PROMPT='%F{green}%*%f %F{blue}%~%f %F{red}${vcs_info_msg_0_}%f$ '
|
|
||||||
12
zsh/zshenv
12
zsh/zshenv
@ -53,17 +53,9 @@ if [[ -d "$HOME/bin" ]]; then
|
|||||||
fi
|
fi
|
||||||
|
|
||||||
# asdf
|
# asdf
|
||||||
if [[ -d "$HOME/.asdf" ]]; then
|
if [[ -d "$HOME/.asdf/shims" ]]; then
|
||||||
# export PATH="$HOME/.asdf/shims:$PATH"
|
export PATH="$HOME/.asdf/shims:$PATH"
|
||||||
export ASDF_DATA_DIR=$HOME/.asdf
|
|
||||||
export ASDF_CONFIG_FILE=$HOME/.asdfrc
|
|
||||||
fi
|
fi
|
||||||
# mise
|
|
||||||
if [[ -x "$(command -v mise)" ]]; then
|
|
||||||
export MISE_PYTHON_DEFAULT_PACKAGES_FILE=$XDG_CONFIG_HOME/mise/.default-python-packages
|
|
||||||
eval "$(mise activate zsh)"
|
|
||||||
fi
|
|
||||||
|
|
||||||
if [[ -d "/opt/homebrew/share/google-cloud-sdk/bin" ]]; then
|
if [[ -d "/opt/homebrew/share/google-cloud-sdk/bin" ]]; then
|
||||||
export PATH=/opt/homebrew/share/google-cloud-sdk/bin:$PATH
|
export PATH=/opt/homebrew/share/google-cloud-sdk/bin:$PATH
|
||||||
fi
|
fi
|
||||||
|
|||||||
10
zsh/zshrc
10
zsh/zshrc
@ -17,13 +17,7 @@ setopt HIST_IGNORE_SPACE
|
|||||||
setopt AUTO_CD
|
setopt AUTO_CD
|
||||||
setopt PROMPT_SUBST
|
setopt PROMPT_SUBST
|
||||||
|
|
||||||
if [[ -d $HOME/.config/dotfiles/zsh ]]; then
|
SCRIPTPATH=$HOME/.config/dotfiles/zsh
|
||||||
SCRIPTPATH=$HOME/.config/dotfiles/zsh
|
|
||||||
elif [[ -d $HOME/dotfiles/zsh ]]; then
|
|
||||||
SCRIPTPATH=$HOME/dotfiles/zsh
|
|
||||||
fi
|
|
||||||
|
|
||||||
source $SCRIPTPATH/zprofile
|
|
||||||
|
|
||||||
# Use emacs-style binds instead of vim
|
# Use emacs-style binds instead of vim
|
||||||
bindkey -e
|
bindkey -e
|
||||||
@ -49,8 +43,6 @@ fi
|
|||||||
if [[ -x "$(command -v starship)" ]]; then
|
if [[ -x "$(command -v starship)" ]]; then
|
||||||
export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
|
export STARSHIP_CONFIG="$HOME/.config/starship/starship.toml"
|
||||||
eval "$(starship init zsh)"
|
eval "$(starship init zsh)"
|
||||||
else
|
|
||||||
source $SCRIPTPATH/zprompt
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# asdf
|
# asdf
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user