@@ -140,32 +140,32 @@ return {
140140 -- Jump to the definition of the word under your cursor.
141141 -- This is where a variable was first declared, or where a function is defined, etc.
142142 -- To jump back, press <C-t>.
143- map (' gd' , deprecated (' grd' , require ( ' snacks ' ) .picker .lsp_definitions ), ' Goto Definition' )
144- map (' grd' , require ( ' snacks ' ) .picker .lsp_definitions , ' Goto Definition' )
143+ map (' gd' , deprecated (' grd' , Snacks .picker .lsp_definitions ), ' Goto Definition' )
144+ map (' grd' , Snacks .picker .lsp_definitions , ' Goto Definition' )
145145
146146 -- Find references for the word under your cursor.
147- map (' grr' , require ( ' snacks ' ) .picker .lsp_references , ' Goto References' )
147+ map (' grr' , Snacks .picker .lsp_references , ' Goto References' )
148148
149149 -- Jump to the implementation of the word under your cursor.
150150 -- Useful when your language has ways of declaring types without an actual implementation.
151- map (' gri' , require ( ' snacks ' ) .picker .lsp_implementations , ' Goto Implementation' )
151+ map (' gri' , Snacks .picker .lsp_implementations , ' Goto Implementation' )
152152
153153 -- Jump to the type of the word under your cursor.
154154 -- Useful when you're not sure what type a variable is and you want to see
155155 -- the definition of its *type*, not where it was *defined*.
156- map (' grt' , require ( ' snacks ' ) .picker .lsp_type_definitions , ' Type Definition' )
156+ map (' grt' , Snacks .picker .lsp_type_definitions , ' Type Definition' )
157157
158158 map (' <leader>ld' , vim .diagnostic .open_float , ' Open diagnostic in float' )
159159
160160 -- Fuzzy find all the symbols in your current document.
161161 -- Symbols are things like variables, functions, types, etc.
162- map (' <leader>ls' , deprecated (' gD' , require ( ' snacks ' ) .picker .lsp_symbols ), ' Document Symbols' )
163- map (' gD' , require ( ' snacks ' ) .picker .lsp_symbols , ' Document Symbols' )
162+ map (' <leader>ls' , deprecated (' gD' , Snacks .picker .lsp_symbols ), ' Document Symbols' )
163+ map (' gD' , Snacks .picker .lsp_symbols , ' Document Symbols' )
164164
165165 -- Fuzzy find all the symbols in your current workspace.
166166 -- Similar to document symbols, except searches over your entire project.
167- map (' <leader>lS' , deprecated (' gW' , require ( ' snacks ' ) .picker .lsp_workspace_symbols ), ' Workspace Symbols' )
168- map (' gW' , require ( ' snacks ' ) .picker .lsp_workspace_symbols , ' Workspace Symbols' )
167+ map (' <leader>lS' , deprecated (' gW' , Snacks .picker .lsp_workspace_symbols ), ' Workspace Symbols' )
168+ map (' gW' , Snacks .picker .lsp_workspace_symbols , ' Workspace Symbols' )
169169
170170 -- Rename the variable under your cursor.
171171 -- Most Language Servers support renaming across files, etc.
@@ -179,7 +179,7 @@ return {
179179
180180 -- WARN: This is not Goto Definition, this is Goto Declaration.
181181 -- For example, in C this would take you to the header.
182- map (' grD' , vim . lsp . buf . declaration , ' Goto Declaration' )
182+ map (' grD' , Snacks . picker . lsp_declarations , ' Goto Declaration' )
183183
184184 -- This function resolves a difference between neovim nightly (version 0.11) and stable (version 0.10)
185185 --- @param client vim.lsp.Client
0 commit comments