Skip to content

Commit e3be09c

Browse files
author
Philipp Szechenyi
committed
add some comments to snacks picker to get it inline with telescope config
1 parent 4fa0e8a commit e3be09c

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

lua/kickstart/plugins/snacks.lua

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,11 @@ return { -- Fuzzy Finder (files, lsp, etc)
132132
},
133133
},
134134

135+
-- This runs on LSP attach per buffer (see main LSP attach function in 'neovim/nvim-lspconfig' config for more info,
136+
-- it is better explained there). This is a little bit redundant, but we can switch off pickers for an optional
137+
-- picker like this one here more easily when the keymaps are defined in the plugin itself.
138+
-- It sets up buffer-local keymaps, autocommands, and other LSP-related settings
139+
-- whenever an LSP client attaches to a buffer.
135140
config = function()
136141
vim.api.nvim_create_autocmd('LspAttach', {
137142
group = vim.api.nvim_create_augroup('snacks-lsp-attach', { clear = true }),

0 commit comments

Comments
 (0)