diff options
| author | 2025-04-02 05:07:26 -0400 | |
|---|---|---|
| committer | 2025-04-02 05:07:26 -0400 | |
| commit | c39de560ae0bddcd4b22d19645a24bb71dbeb81d (patch) | |
| tree | 97188aefc855a7c85c4caa9ec5b3c342675d6604 /files | |
| parent | a788dd9a0273fc4aac68197934eb8f25f4b367f2 (diff) | |
| download | dotfiles-c39de560ae0bddcd4b22d19645a24bb71dbeb81d.tar.gz dotfiles-c39de560ae0bddcd4b22d19645a24bb71dbeb81d.tar.bz2 dotfiles-c39de560ae0bddcd4b22d19645a24bb71dbeb81d.zip | |
Use `with pkg` when it's there
Diffstat (limited to 'files')
| -rw-r--r-- | files/nvim/mini_starter_picture.diff | 20 |
1 files changed, 18 insertions, 2 deletions
diff --git a/files/nvim/mini_starter_picture.diff b/files/nvim/mini_starter_picture.diff index 1066573..3ecd564 100644 --- a/files/nvim/mini_starter_picture.diff +++ b/files/nvim/mini_starter_picture.diff @@ -1,5 +1,5 @@ diff --git a/lua/mini/starter.lua b/lua/mini/starter.lua -index 3e0570f3..3f003ba8 100644 +index 3e0570f3..0f4a384e 100644 --- a/lua/mini/starter.lua +++ b/lua/mini/starter.lua @@ -138,7 +138,7 @@ @@ -247,7 +247,23 @@ index 3e0570f3..3f003ba8 100644 -- Make all special symbols to update query for _, key in ipairs(vim.split(H.get_config().query_updaters, '')) do -@@ -1480,7 +1577,7 @@ H.echo = function(msg, is_important) +@@ -1466,21 +1563,21 @@ H.is_something_shown = function() + end + + -- Utilities ------------------------------------------------------------------ +-H.error = function(msg) error('(mini.starter) ' .. msg, 0) end ++H.error = function(msg) error('' .. msg, 0) end + + H.check_type = function(name, val, ref, allow_nil) + if type(val) == ref or (ref == 'callable' and vim.is_callable(val)) or (allow_nil and val == nil) then return end + H.error(string.format('`%s` should be %s, not %s', name, ref, type(val))) + end + +-H.set_buf_name = function(buf_id, name) vim.api.nvim_buf_set_name(buf_id, 'ministarter://' .. buf_id .. '/' .. name) end ++H.set_buf_name = function(buf_id, name) vim.api.nvim_buf_set_name(buf_id, 'dashboard://' .. buf_id .. '/' .. name) end + + H.echo = function(msg, is_important) + if H.get_config().silent then return end -- Construct message chunks msg = type(msg) == 'string' and { { msg } } or msg |