Compare commits
17 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
0572f1394f
|
|||
| b2620d58af | |||
| 97b13465a8 | |||
|
53e48ea9e8
|
|||
|
209f4d3ddd
|
|||
|
73b5a72f6f
|
|||
|
9c8b4e5d5a
|
|||
| 3f27e8495f | |||
| 56460e393c | |||
|
15a12bce41
|
|||
|
f0203cc6fe
|
|||
|
a99bb19d48
|
|||
|
1eb5d9d141
|
|||
|
681e045851
|
|||
|
9d1cf13fd1
|
|||
|
fa6148515c
|
|||
|
e482aa9e63
|
28
.gitea/workflows/check-flake.yml
Normal file
28
.gitea/workflows/check-flake.yml
Normal file
@@ -0,0 +1,28 @@
|
|||||||
|
name: check-flake
|
||||||
|
on:
|
||||||
|
push:
|
||||||
|
branches:
|
||||||
|
- main
|
||||||
|
pull_request:
|
||||||
|
|
||||||
|
jobs:
|
||||||
|
build:
|
||||||
|
runs-on: ubuntu-latest
|
||||||
|
steps:
|
||||||
|
- name: Checkout repository
|
||||||
|
uses: actions/checkout@v4
|
||||||
|
with:
|
||||||
|
ref: "main"
|
||||||
|
- name: Setup sudo (required for the next step)
|
||||||
|
run: apt-get update && apt-get install -y sudo
|
||||||
|
- name: Setup nix
|
||||||
|
uses: cachix/install-nix-action@v27
|
||||||
|
with:
|
||||||
|
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
||||||
|
nix_path: nixpkgs=channel:nixos-23.11
|
||||||
|
- name: Build nix flake
|
||||||
|
run: |
|
||||||
|
while true; do sleep 1; rm -rf /homeless-shelter; done &
|
||||||
|
nix build
|
||||||
|
- name: Check nix flake
|
||||||
|
run: nix flake check --all-systems
|
||||||
@@ -1,37 +0,0 @@
|
|||||||
name: update-flake-lock
|
|
||||||
on:
|
|
||||||
schedule:
|
|
||||||
- cron: "0 1 0 * *"
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
lockfile:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
steps:
|
|
||||||
- name: Checkout repository
|
|
||||||
uses: actions/checkout@v4
|
|
||||||
with:
|
|
||||||
ref: "main"
|
|
||||||
- name: Setup sudo (required for the next step)
|
|
||||||
run: apt-get update && apt-get install -y sudo
|
|
||||||
- name: Setup nix
|
|
||||||
uses: cachix/install-nix-action@v26
|
|
||||||
with:
|
|
||||||
github_access_token: ${{ secrets.GH_ACCESS_TOKEN }}
|
|
||||||
- name: Update nix flake lockfile
|
|
||||||
run: |
|
|
||||||
nix --extra-experimental-features nix-command --extra-experimental-features flakes flake update
|
|
||||||
- name: Verify Changed files
|
|
||||||
uses: tj-actions/verify-changed-files@v19
|
|
||||||
id: verify-changed-files
|
|
||||||
with:
|
|
||||||
files: |
|
|
||||||
flake.lock
|
|
||||||
- name: Push updated lockfile
|
|
||||||
if: steps.verify-changed-files.outputs.files_changed == 'true'
|
|
||||||
run: |
|
|
||||||
git diff
|
|
||||||
git config --global user.name "Gitea Bot"
|
|
||||||
git config --global user.email "bot@git.palkoi.net"
|
|
||||||
git add flake.lock
|
|
||||||
git commit -m 'choke(nix-lock): bump flake.lock versions'
|
|
||||||
git push
|
|
||||||
@@ -1 +1 @@
|
|||||||
/usr/local/etc/xaked-nvim-lazygit-config.yml
|
/tmp/lazyvim-lazygit/config.yml
|
||||||
@@ -1 +1 @@
|
|||||||
/usr/local/etc/xaked-nvim-lazygit-state.yml
|
/tmp/lazyvim-lazygit/state.yml
|
||||||
@@ -1 +1,8 @@
|
|||||||
|
-- Configure symlinks needed by LazyVim
|
||||||
|
vim.fn.system({ "mkdir", "-p", os.getenv("HOME") .. "/.config/lazyvim/nvim" })
|
||||||
|
vim.fn.system({ "mkdir", "-p", os.getenv("HOME") .. "/.config/lazyvim/lazygit" })
|
||||||
|
vim.fn.system({ "ln", "-sfT", os.getenv("HOME") .. "/.config/lazyvim/nvim", "/tmp/lazyvim-nvim" })
|
||||||
|
vim.fn.system({ "ln", "-sfT", os.getenv("HOME") .. "/.config/lazyvim/lazygit", "/tmp/lazyvim-lazygit" })
|
||||||
|
|
||||||
|
-- Load lazyvim
|
||||||
require("config.lazy")
|
require("config.lazy")
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
/usr/local/etc/xaked-nvim-lazy-lock.json
|
/tmp/lazyvim-nvim/lazy-lock.json
|
||||||
@@ -1 +1 @@
|
|||||||
/usr/local/etc/xaked-nvim-lazyvim.json
|
/tmp/lazyvim-nvim/lazyvim.json
|
||||||
@@ -11,8 +11,9 @@ require("lazy").setup({
|
|||||||
spec = {
|
spec = {
|
||||||
-- add LazyVim and import its plugins
|
-- add LazyVim and import its plugins
|
||||||
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
{ "LazyVim/LazyVim", import = "lazyvim.plugins" },
|
||||||
{ import = "lazyvim.plugins.extras.coding.codeium" },
|
-- { import = "lazyvim.plugins.extras.coding.codeium" },
|
||||||
{ import = "lazyvim.plugins.extras.editor.harpoon2" },
|
-- { import = "lazyvim.plugins.extras.editor.harpoon2" },
|
||||||
|
{ import = "lazyvim.plugins.extras.editor.outline" },
|
||||||
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
{ import = "lazyvim.plugins.extras.formatting.prettier" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.ansible" },
|
{ import = "lazyvim.plugins.extras.lang.ansible" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.docker" },
|
{ import = "lazyvim.plugins.extras.lang.docker" },
|
||||||
@@ -25,14 +26,17 @@ require("lazy").setup({
|
|||||||
{ import = "lazyvim.plugins.extras.lang.rust" },
|
{ import = "lazyvim.plugins.extras.lang.rust" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.scala" },
|
{ import = "lazyvim.plugins.extras.lang.scala" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.terraform" },
|
{ import = "lazyvim.plugins.extras.lang.terraform" },
|
||||||
|
{ import = "lazyvim.plugins.extras.lang.toml" },
|
||||||
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
{ import = "lazyvim.plugins.extras.lang.yaml" },
|
||||||
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
{ import = "lazyvim.plugins.extras.ui.mini-animate" },
|
||||||
|
{ import = "lazyvim.plugins.extras.ui.treesitter-context" },
|
||||||
{ import = "plugins.tokyonight" },
|
{ import = "plugins.tokyonight" },
|
||||||
{ import = "plugins.telescope" },
|
{ import = "plugins.telescope" },
|
||||||
{ import = "plugins.lang.nix" },
|
{ import = "plugins.lang.nix" },
|
||||||
{ import = "plugins.lang.shell" },
|
{ import = "plugins.lang.shell" },
|
||||||
{ import = "plugins.misc.tmux-navigator" },
|
{ import = "plugins.misc.tmux-navigator" },
|
||||||
{ import = "plugins.undotree" },
|
{ import = "plugins.undotree" },
|
||||||
|
{ import = "plugins.ui.colorizer" },
|
||||||
},
|
},
|
||||||
defaults = {
|
defaults = {
|
||||||
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
-- By default, only LazyVim plugins will be lazy-loaded. Your custom plugins will load during startup.
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
return {
|
return {
|
||||||
"telescope.nvim",
|
"nvim-telescope/telescope.nvim",
|
||||||
dependencies = {
|
dependencies = {
|
||||||
"nvim-telescope/telescope-fzf-native.nvim",
|
"nvim-telescope/telescope-fzf-native.nvim",
|
||||||
build = "make",
|
build = "make",
|
||||||
@@ -7,4 +7,25 @@ return {
|
|||||||
require("telescope").load_extension("fzf")
|
require("telescope").load_extension("fzf")
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
|
opts = {
|
||||||
|
defaults = {
|
||||||
|
file_ignore_patterns = {
|
||||||
|
".git/",
|
||||||
|
"^node_modules/",
|
||||||
|
".cache",
|
||||||
|
},
|
||||||
|
},
|
||||||
|
pickers = {
|
||||||
|
live_grep = {
|
||||||
|
additional_args = { "-L" },
|
||||||
|
},
|
||||||
|
grep_string = {
|
||||||
|
additional_args = { "-L" },
|
||||||
|
},
|
||||||
|
find_files = {
|
||||||
|
hidden = true,
|
||||||
|
follow = true,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
6
config/src/nvim/lua/plugins/ui/colorizer.lua
Normal file
6
config/src/nvim/lua/plugins/ui/colorizer.lua
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
return {
|
||||||
|
"chrisbra/Colorizer",
|
||||||
|
keys = {
|
||||||
|
{ "<leader>uR", "<cmd>ColorToggle<cr>", desc = "Toggle Colorizer" },
|
||||||
|
},
|
||||||
|
}
|
||||||
8
flake.lock
generated
8
flake.lock
generated
@@ -59,16 +59,16 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1711124224,
|
"lastModified": 1718895438,
|
||||||
"narHash": "sha256-l0zlN/3CiodvWDtfBOVxeTwYSRz93muVbXWSpaMjXxM=",
|
"narHash": "sha256-k3JqJrkdoYwE3fHE6xGDY676AYmyh4U2Zw+0Bwe5DLU=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "56528ee42526794d413d6f244648aaee4a7b56c0",
|
"rev": "d603719ec6e294f034936c0d0dc06f689d91b6c3",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"ref": "nixos-23.11",
|
"ref": "nixos-unstable",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
{
|
{
|
||||||
description = "NVIM Configuration";
|
description = "NVIM Configuration";
|
||||||
inputs = {
|
inputs = {
|
||||||
nixpkgs.url = "github:nixos/nixpkgs/nixos-23.11";
|
nixpkgs.url = "github:nixos/nixpkgs/nixos-unstable";
|
||||||
flake-utils.url = "github:numtide/flake-utils";
|
flake-utils.url = "github:numtide/flake-utils";
|
||||||
neovim = {
|
neovim = {
|
||||||
url = "github:neovim/neovim/stable?dir=contrib";
|
url = "github:neovim/neovim/stable?dir=contrib";
|
||||||
@@ -9,7 +9,6 @@
|
|||||||
};
|
};
|
||||||
};
|
};
|
||||||
outputs = inputs @ {
|
outputs = inputs @ {
|
||||||
self,
|
|
||||||
nixpkgs,
|
nixpkgs,
|
||||||
flake-utils,
|
flake-utils,
|
||||||
neovim,
|
neovim,
|
||||||
@@ -17,7 +16,9 @@
|
|||||||
}:
|
}:
|
||||||
flake-utils.lib.eachDefaultSystem (system: let
|
flake-utils.lib.eachDefaultSystem (system: let
|
||||||
overlayFlakeInputs = prev: final: {
|
overlayFlakeInputs = prev: final: {
|
||||||
neovim = neovim.packages.${system}.neovim;
|
neovim = neovim.packages.${system}.neovim.overrideAttrs (oa: {
|
||||||
|
nativeBuildInputs = oa.nativeBuildInputs ++ [final.libtermkey];
|
||||||
|
});
|
||||||
};
|
};
|
||||||
|
|
||||||
overlayLazyVim = prev: final: {
|
overlayLazyVim = prev: final: {
|
||||||
|
|||||||
7
renovate.json5
Normal file
7
renovate.json5
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"$schema": "https://docs.renovatebot.com/renovate-schema.json",
|
||||||
|
"extends": ["local>local/renovate"],
|
||||||
|
"nix": {
|
||||||
|
"enabled": true
|
||||||
|
}
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user