Skip to content

Commit

Permalink
use nightly and abort if not find tool in registry
Browse files Browse the repository at this point in the history
  • Loading branch information
davidosomething committed May 21, 2024
1 parent 2faa653 commit 34ce7b0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -37,10 +37,11 @@ jobs:
- name: Install npm packages
run: npm ci

- name: Install neovim stable
- name: Install neovim nightly
uses: rhysd/action-setup-vim@v1
with:
neovim: true
version: nightly

- name: Test
run: |
Expand Down
5 changes: 3 additions & 2 deletions nvim/lua/dko/plugins/tools.lua
Original file line number Diff line number Diff line change
Expand Up @@ -18,8 +18,9 @@ return {
-- https://github.com/jay-babu/mason-null-ls.nvim/blob/main/lua/mason-null-ls/automatic_installation.lua#LL68C19-L75C7
local mr = require("mason-registry")
vim.iter(require("dko.tools").get_tools()):each(function(tool)
local p = mr.get_package(tool)
if p:is_installed() then
-- read package data from registry
local p_ok, p = pcall(mr.get_package, tool)
if not p_ok or p:is_installed() then
return
end
vim.notify(
Expand Down

0 comments on commit 34ce7b0

Please sign in to comment.