This repository was archived by the owner on Apr 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 1 file changed +33
-0
lines changed
lua/doom/modules/features/lsp Expand file tree Collapse file tree 1 file changed +33
-0
lines changed Original file line number Diff line number Diff line change @@ -158,6 +158,11 @@ lsp.packages = {
158
158
},
159
159
event = " VeryLazy" ,
160
160
},
161
+ [" cmp-cmdline" ] = {
162
+ " hrsh7th/cmp-cmdline" ,
163
+ commit = " 23c51b2a3c00f6abc4e922dbd7c3b9aca6992063" ,
164
+ after = " nvim-cmp" ,
165
+ },
161
166
}
162
167
163
168
lsp .configs = {}
@@ -306,6 +311,34 @@ lsp.configs["nvim-cmp"] = function()
306
311
end ,
307
312
}))
308
313
end
314
+ lsp .configs [" cmp-cmdline" ] = function ()
315
+ local cmp = require (" cmp" )
316
+
317
+ -- autocomplete for search
318
+ cmp .setup .cmdline (' /' , {
319
+ mapping = cmp .mapping .preset .cmdline (),
320
+ sources = {
321
+ { name = ' buffer' }
322
+ }
323
+ })
324
+
325
+ -- autocomplete for search
326
+ cmp .setup .cmdline (' :' , {
327
+ mapping = cmp .mapping .preset .cmdline (),
328
+ sources = cmp .config .sources ({
329
+ { name = ' path' }
330
+ },
331
+ {
332
+ {
333
+ name = ' cmdline' ,
334
+ option = {
335
+ ignore_cmds = { ' Man' , ' !' }
336
+ }
337
+ }
338
+ })
339
+ })
340
+
341
+ end
309
342
lsp .configs [" lsp_signature.nvim" ] = function ()
310
343
-- Signature help
311
344
require (" lsp_signature" ).setup (
You can’t perform that action at this time.
0 commit comments