Skip to content

Commit

Permalink
chore: clean-up remaining dot.lua files
Browse files Browse the repository at this point in the history
  • Loading branch information
aikow committed Jan 23, 2025
1 parent e5ce367 commit b31558d
Show file tree
Hide file tree
Showing 25 changed files with 48 additions and 122 deletions.
9 changes: 9 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,3 +15,12 @@ file in the base directory. If the `.install.conf` file doesn't exist, running
```text
This is a code block
```

## Usage

### Environment variables

- `DOTFILES_OS`
- `DOTBOT_FORCE`
- `DOTFILES`
- `DOTFILES_HOME`
2 changes: 1 addition & 1 deletion config/bash/dotbot
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

symlinkfb bashrc ~/.bashrc
symlinkfb "$PWD/bashrc" ~/.bashrc
2 changes: 1 addition & 1 deletion config/conda/dotbot
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
#!/usr/bin/env bash

symlinkfb condarc ~/.condarc
symlinkfb "$PWD/condarc" ~/.condarc
11 changes: 6 additions & 5 deletions config/nushell/dotbot
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,9 @@

command -v nu &>/dev/null || exit 1

if [[ $DOTFILES_OS == "Darwin" ]]; then
symlinkfb "$PWD" ~/Library/Application\ Support/nushell
elif [[ $DOTFILES_OS == "Linux" ]]; then
symlinkfb "$PWD" ~/.config/nushell
fi
case $DOTFILES_OS in
Darwin) target=~/Library/Application\ Support/nushell ;;
Linux) target=~/.config/nushell ;;
esac

symlinkfb "$PWD" "$target"
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-azure.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#11262d", foreground = "#c0c8cc" })
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-blue.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#1d2231", foreground = "#c4c6cd" })
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-cyan.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#112723", foreground = "#c0c9c7" })
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-green.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#1c2617", foreground = "#c4c8c2" })
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-orange.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#2f1e16", foreground = "#cdc5c1" })
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-purple.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#281e2c", foreground = "#c9c5cb" })
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-red.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#2f1c22", foreground = "#cdc4c6" })
1 change: 1 addition & 0 deletions config/nvim/colors/minihues-yellow.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
require("mini.hues").setup({ background = "#282211", foreground = "#c9c6c0" })
2 changes: 1 addition & 1 deletion config/nvim/dotbot
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash

command -v nvim &>/dev/null || exit 1

symlinkfb "$PWD" ~/.config/nvim
4 changes: 1 addition & 3 deletions config/nvim/lua/user/plugins/colorschemes.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,10 @@ MiniDeps.now(function()
"builtin.git",
"builtin.lsp",
"builtin.semantic",
"builtin.statusline",
"builtin.syntax",
"builtin.terminal",
"builtin.treesitter",
"plugin.indent-blankline",
"plugin.luasnip",
"plugin.mason",
"plugin.mini",
"plugin.treesitter",
Expand All @@ -29,7 +27,7 @@ MiniDeps.now(function()
})

require("catppuccin").setup({
fintegrations = {
integrations = {
diffview = true,
mason = true,
},
Expand Down
1 change: 0 additions & 1 deletion config/nvim/lua/user/plugins/formatting.lua
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,6 @@ MiniDeps.later(function()
return { "-l", vim.b[0].sqllanguage or "sqlite" }
end,
},
stylua = {},
},
})

Expand Down
73 changes: 0 additions & 73 deletions config/nvim/lua/user/plugins/lsp/servers/ltex.lua

This file was deleted.

7 changes: 0 additions & 7 deletions config/nvim/lua/user/plugins/lsp/servers/nushell.lua

This file was deleted.

5 changes: 5 additions & 0 deletions config/nvim/lua/user/plugins/mini/clue.lua
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,11 @@ local M = {}
function M.setup()
local miniclue = require("mini.clue")
miniclue.setup({
window = {
config = {
width = "auto",
},
},
triggers = {
-- Leader triggers
{ mode = "n", keys = "<Leader>" },
Expand Down
2 changes: 1 addition & 1 deletion config/nvim/lua/user/plugins/mini/files.lua
Original file line number Diff line number Diff line change
Expand Up @@ -69,7 +69,7 @@ function M.setup()
buffer = buf_id,
desc = "mini.files toggle hidden",
})
vim.keymap.set("n", "gc", files_set_cwd, {
vim.keymap.set("n", "g.", files_set_cwd, {
buffer = buf_id,
desc = "mini.files set current working directory",
})
Expand Down
17 changes: 0 additions & 17 deletions config/nvim/syntax/gitignore.vim

This file was deleted.

3 changes: 0 additions & 3 deletions config/stylua/dot.lua

This file was deleted.

4 changes: 4 additions & 0 deletions config/stylua/dotbot
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
#!/usr/bin/env bash

mkdir -p ~/.config/stylua
symlinkfb "$PWD/stylua.toml" ~/.config/stylua/stylua.toml
9 changes: 0 additions & 9 deletions config/vscode/dot.lua

This file was deleted.

8 changes: 8 additions & 0 deletions config/vscode/dotbot
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#!/usr/bin/env bash

case $DOTFILES_OS in
Darwin) target=~/Library/Application Support/Code/User ;;
Linux) target=~/.config/Code/User ;;
esac

[[ ! -f $target || $DOTBOT_FORCE == yes ]] && cp "$PWD/settings.json" "$target"
3 changes: 3 additions & 0 deletions install
Original file line number Diff line number Diff line change
@@ -1,9 +1,12 @@
#!/usr/bin/env bash

export DOTFILES_HOME=$PWD
export DOTFILES_BIN=$DOTFILES_HOME/bin
DOTFILES_OS=$(uname -o)
export DOTFILES_OS

PATH=$DOTFILES_BIN:$PATH

bash dotbot

for config_dotbot in config/*/dotbot; do
Expand Down

0 comments on commit b31558d

Please sign in to comment.