Skip to content

Commit 2b6d7f7

Browse files
committed
Remove some diagnostic messages
1 parent cdc3c22 commit 2b6d7f7

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

init.lua

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,9 @@ require('lazy').setup({
11661166
-- Or use telescope!
11671167
-- In normal mode type `<space>sh` then write `lazy.nvim-plugin`
11681168
-- you can continue same window with `<space>sr` which resumes last telescope search
1169-
}, {
1169+
},
1170+
---@diagnostic disable-next-line: missing-fields
1171+
{
11701172
ui = {
11711173
-- If you are using a Nerd Font: set icons to an empty table which will use the
11721174
-- default lazy.nvim defined Nerd Font icons, otherwise define a unicode icons table

lua/custom/plugins/init.lua

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -217,7 +217,9 @@ return {
217217
{ '<leader>s.', function() Snacks.picker.recent() end, desc = '[S]earch Recent Files ("." for repeat)' },
218218
{ '<leader><leader>', function() Snacks.picker.buffers() end, desc = '[ ] Find existing buffers' },
219219
{ '<leader>s/', function() Snacks.picker.grep_buffers() end, desc = '[/] Fuzzily search in current buffer' },
220+
---@diagnostic disable-next-line: undefined-field
220221
{ '<leader>st', function() Snacks.picker.todo_comments() end, desc = '[S]earch [T]odo' },
222+
---@diagnostic disable-next-line: undefined-field
221223
{ '<leader>sT', function () Snacks.picker.todo_comments({ keywords = { 'TODO', 'FIX', 'FIXME' } }) end, desc = '[S]earch [T]odo/Fix/Fixme' },
222224
-- stylua: ignore end
223225
},
@@ -248,6 +250,7 @@ return {
248250
}
249251
pcall(require('telescope').load_extension 'persisted')
250252

253+
---@diagnostic disable-next-line: undefined-field
251254
vim.opt.sessionoptions:append 'globals'
252255
vim.api.nvim_create_autocmd({ 'User' }, {
253256
pattern = 'PersistedSavePre',
@@ -259,6 +262,7 @@ return {
259262

260263
vim.api.nvim_create_autocmd('User', {
261264
pattern = 'PersistedTelescopeLoadPre',
265+
---@diagnostic disable-next-line: unused-local
262266
callback = function(session)
263267
-- Save the currently loaded session passing in the path to the current session
264268
require('persisted').save { session = vim.g.persisted_loaded_session }

0 commit comments

Comments
 (0)