diff --git a/.github/workflows/lualint.yml b/.github/workflows/lualint.yml index 02b607e..704bb18 100644 --- a/.github/workflows/lualint.yml +++ b/.github/workflows/lualint.yml @@ -2,10 +2,13 @@ name: Lint Lua files on: pull_request # yamllint disable-line rule:truthy jobs: - Lint: + selene: runs-on: ubuntu-latest steps: - - name: Checkout - uses: actions/checkout@v4 - - name: Luacheck linter - uses: lunarmodules/luacheck@v1 + - uses: actions/checkout@v4 + - name: Run selene + uses: NTBBloodbath/selene-action@v1.0.0 + with: + token: ${{ secrets.GITHUB_TOKEN }} + args: nvim/ + version: 0.30.1 diff --git a/.luacheckrc b/.luacheckrc deleted file mode 100644 index c8a3f4e..0000000 --- a/.luacheckrc +++ /dev/null @@ -1,3 +0,0 @@ -globals = { - "vim", -} diff --git a/fish/completions/copilot.fish b/fish/completions/copilot.fish index 12f242b..33cad56 100644 --- a/fish/completions/copilot.fish +++ b/fish/completions/copilot.fish @@ -14,7 +14,7 @@ complete -c copilot -l interactive -s i -r -d 'Start interactive mode and automa complete -c copilot -l prompt -s p -r -d 'Execute a prompt in non-interactive mode (exits after completion)' complete -c copilot -l silent -s s -f -d 'Output only the agent response (no stats), useful for scripting with -p' complete -c copilot -l model -r -d 'Set the AI model to use' -complete -c copilot -l effort -l reasoning-effort -r -d 'Set the reasoning effort level' -a 'none low medium high xhigh' +complete -c copilot -l effort -l reasoning-effort -r -d 'Set the reasoning effort level' -a 'none low medium high xhigh max' complete -c copilot -l enable-reasoning-summaries -f -d 'Request reasoning summaries for OpenAI models' complete -c copilot -l agent -r -d 'Specify a custom agent to use' complete -c copilot -l resume -r -d 'Resume from a previous session (optionally specify session ID, task ID, or name; name matching is exact, case-insensitive)' @@ -76,6 +76,7 @@ complete -c copilot -n '__fish_seen_subcommand_from plugin' -f -a 'uninstall' -d complete -c copilot -n '__fish_seen_subcommand_from plugin' -f -a 'update' -d 'Update a plugin' complete -c copilot -n '__fish_seen_subcommand_from plugin' -f -a 'list' -d 'List installed plugins' complete -c copilot -n '__fish_seen_subcommand_from plugin' -f -a 'marketplace' -d 'Manage plugin marketplaces' +complete -c copilot -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from update' -l all -f -d 'Update all installed plugins' complete -c copilot -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from marketplace' -f -a 'add' -d 'Add a marketplace' complete -c copilot -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from marketplace' -f -a 'remove' -d 'Remove a marketplace' complete -c copilot -n '__fish_seen_subcommand_from plugin; and __fish_seen_subcommand_from marketplace' -f -a 'list' -d 'List registered marketplaces' diff --git a/gh/hosts.yml b/gh/hosts.yml index 21f8178..33be033 100644 --- a/gh/hosts.yml +++ b/gh/hosts.yml @@ -2,3 +2,5 @@ github.com: user: djensenius git_protocol: https + users: + djensenius: diff --git a/mise/config.toml b/mise/config.toml index 54be6dd..b0b804b 100644 --- a/mise/config.toml +++ b/mise/config.toml @@ -4,6 +4,7 @@ go = 'latest' jq = 'latest' kubectl = 'latest' +lua = 'latest' node = 'latest' npm = 'latest' pipx = 'latest' diff --git a/nvim/init.lua b/nvim/init.lua index 95749cc..438c043 100644 --- a/nvim/init.lua +++ b/nvim/init.lua @@ -1,4 +1,3 @@ --- luacheck: globals vim if vim.loader then vim.loader.enable() end diff --git a/nvim/lua/plugins/gitsigns.lua b/nvim/lua/plugins/gitsigns.lua index 08c6f39..1343b3b 100644 --- a/nvim/lua/plugins/gitsigns.lua +++ b/nvim/lua/plugins/gitsigns.lua @@ -1,4 +1,3 @@ --- luacheck: ignore 211 212 return { "lewis6991/gitsigns.nvim", event = { "BufReadPre", "BufNewFile" }, diff --git a/nvim/lua/plugins/mason.lua b/nvim/lua/plugins/mason.lua index 3ca685b..91bdfa6 100644 --- a/nvim/lua/plugins/mason.lua +++ b/nvim/lua/plugins/mason.lua @@ -46,7 +46,7 @@ return { "golangci-lint", "isort", "jsonlint", - "luacheck", + "selene", "prettierd", "prettier", "shellcheck", diff --git a/nvim/lua/plugins/nvim-lint.lua b/nvim/lua/plugins/nvim-lint.lua index 4848b5e..6424d5c 100644 --- a/nvim/lua/plugins/nvim-lint.lua +++ b/nvim/lua/plugins/nvim-lint.lua @@ -13,7 +13,7 @@ return { javascript = { "eslint_d" }, javascriptreact = { "eslint_d" }, jsonlint = { "jsonlint" }, - lua = { "luacheck" }, + lua = { "selene" }, ruby = { "rubocop" }, svelte = { "eslint_d" }, typescript = { "eslint_d" }, diff --git a/selene.toml b/selene.toml new file mode 100644 index 0000000..bafa34c --- /dev/null +++ b/selene.toml @@ -0,0 +1,5 @@ +std = "vim" + +[rules] +mixed_table = "allow" +incorrect_standard_library_use = "allow" diff --git a/tmux/tmux.conf b/tmux/tmux.conf index cb90a0f..5b8339e 100644 --- a/tmux/tmux.conf +++ b/tmux/tmux.conf @@ -49,6 +49,7 @@ set -ag status-right "#{E:@catppuccin_status_battery}" # ================== Plugins ======================= +set-environment -g TMUX_PLUGIN_MANAGER_PATH "$HOME/.config/tmux/plugins" set -g @plugin 'tmux-plugins/tpm' set -g @plugin 'tmux-plugins/tmux-sensible' set -g @plugin 'tmux-plugins/tmux-pain-control' diff --git a/vim.yml b/vim.yml new file mode 100644 index 0000000..5e1c9d8 --- /dev/null +++ b/vim.yml @@ -0,0 +1,8 @@ +--- +base: lua51 +globals: + vim: + any: true + package.config: + type: string + property: read-only