3rd party Neovim plugin that compliments https://mise.jdx.dev/

Compare changes

Choose any two refs to compare.

Changed files
+23 -43
.github
workflows
doc
lua
mise
-37
.github/workflows/ci.yml
··· 1 - name: CI 2 - on: 3 - push: 4 - branches: 5 - - 'master' 6 - pull_request: 7 - branches: 8 - - 'master' 9 - 10 - jobs: 11 - docs: 12 - runs-on: ubuntu-latest 13 - steps: 14 - - uses: actions/checkout@v4 15 - - name: panvimdoc 16 - uses: kdheepak/panvimdoc@v4.0.1 17 - with: 18 - vimdoc: mise.nvim 19 - version: "Neovim >= 0.9.0" 20 - demojify: true 21 - treesitter: true 22 - - name: Push changes 23 - uses: stefanzweifel/git-auto-commit-action@v5 24 - with: 25 - commit_message: "chore(build): auto-generate vimdoc" 26 - commit_user_name: "github-actions[bot]" 27 - commit_user_email: "github-actions[bot]@users.noreply.github.com" 28 - commit_author: "github-actions[bot] <github-actions[bot]@users.noreply.github.com>" 29 - release: 30 - name: release 31 - needs: 32 - - docs 33 - runs-on: ubuntu-latest 34 - steps: 35 - - uses: googleapis/release-please-action@v4 36 - with: 37 - release-type: simple
···
+8
CHANGELOG.md
···
··· 1 + # Changelog 2 + 3 + ## [1.0.1](https://github.com/ejrichards/mise.nvim/compare/v1.0.0...v1.0.1) (2024-10-25) 4 + 5 + 6 + ### Bug Fixes 7 + 8 + * better message when mise has an error / warning ([42340e1](https://github.com/ejrichards/mise.nvim/commit/42340e10dd06887cc5a94e802799f725bcc72cfc))
+3 -2
README.md
··· 7 lazy.nvim 8 ```lua 9 { 10 - "ejrichards/mise.nvim", 11 opts = {} 12 } 13 ``` ··· 17 Defaults 18 ```lua 19 { 20 - -- Executable to run and the args to pass 21 run = 'mise', 22 args = 'env --json', 23 -- Set to override the base PATH 24 initial_path = vim.env.PATH,
··· 7 lazy.nvim 8 ```lua 9 { 10 + "https://plugins.ejri.dev/mise.nvim", 11 opts = {} 12 } 13 ``` ··· 17 Defaults 18 ```lua 19 { 20 + -- Executable to run 21 run = 'mise', 22 + -- Args for the executable, set to "env --json --quiet" to ignore mise warnings 23 args = 'env --json', 24 -- Set to override the base PATH 25 initial_path = vim.env.PATH,
+3 -2
doc/mise.nvim.txt
··· 1 - *mise.nvim.txt* For Neovim >= 0.9.0 Last change: 2024 June 19 2 3 ============================================================================== 4 Table of Contents *mise.nvim-table-of-contents* ··· 37 38 >lua 39 { 40 - -- Executable to run and the args to pass 41 run = 'mise', 42 args = 'env --json', 43 -- Set to override the base PATH 44 initial_path = vim.env.PATH,
··· 1 + *mise.nvim.txt* For Neovim >= 0.9.0 2 3 ============================================================================== 4 Table of Contents *mise.nvim-table-of-contents* ··· 37 38 >lua 39 { 40 + -- Executable to run 41 run = 'mise', 42 + -- Args for the executable, set to "env --json --quiet" to ignore mise warnings 43 args = 'env --json', 44 -- Set to override the base PATH 45 initial_path = vim.env.PATH,
+9 -2
lua/mise/init.lua
··· 32 local full_command = options.run .. " " .. options.args 33 local env_sh = vim.fn.system(full_command) 34 35 local ok, data = pcall(vim.json.decode, env_sh) 36 if not ok or data == nil then 37 log.error('Invalid json returned by "' .. full_command .. '"') ··· 87 end 88 89 if options.load_on_setup then 90 load_env(data) 91 else 92 set_previous(data) 93 end 94 - 95 96 local group = vim.api.nvim_create_augroup("mise.nvim", { clear = true }) 97 vim.api.nvim_create_autocmd("DirChanged", { ··· 105 }) 106 107 vim.api.nvim_create_user_command("Mise", function() 108 - log.info(vim.inspect(get_data())); 109 end, { 110 desc = "Mise", 111 })
··· 32 local full_command = options.run .. " " .. options.args 33 local env_sh = vim.fn.system(full_command) 34 35 + -- mise will print out warnings: "mise WARN" without the "--quiet" flag 36 + if string.find(env_sh, "^mise") then 37 + local first_line = string.match(env_sh, "^[^\n]*") 38 + log.error(first_line) 39 + return nil 40 + end 41 + 42 local ok, data = pcall(vim.json.decode, env_sh) 43 if not ok or data == nil then 44 log.error('Invalid json returned by "' .. full_command .. '"') ··· 94 end 95 96 if options.load_on_setup then 97 + vim.env.PATH = options.initial_path 98 load_env(data) 99 else 100 set_previous(data) 101 end 102 103 local group = vim.api.nvim_create_augroup("mise.nvim", { clear = true }) 104 vim.api.nvim_create_autocmd("DirChanged", { ··· 112 }) 113 114 vim.api.nvim_create_user_command("Mise", function() 115 + log.info(vim.inspect(get_data())) 116 end, { 117 desc = "Mise", 118 })