This repository was archived by the owner on Apr 16, 2024. It is now read-only.
File tree Expand file tree Collapse file tree 4 files changed +24
-28
lines changed
lua/doom/modules/features Expand file tree Collapse file tree 4 files changed +24
-28
lines changed Original file line number Diff line number Diff line change
1
+ local extra_snippets = {}
2
+
3
+ extra_snippets .settings = {
4
+ }
5
+
6
+ extra_snippets .packages = {
7
+ [" friendly-snippets" ] = {
8
+ " rafamadriz/friendly-snippets" ,
9
+ after = " LuaSnip"
10
+ },
11
+ }
12
+
13
+ extra_snippets .configs = {}
14
+ extra_snippets .configs [" friendly-snippets" ] = function ()
15
+ require (" luasnip.loaders.from_vscode" ).lazy_load ()
16
+ end
17
+
18
+ return extra_snippets
Original file line number Diff line number Diff line change @@ -98,14 +98,14 @@ lsp.packages = {
98
98
commit = " 60f2993b9661d9844cee3bebdbd1b5860577eb3c" ,
99
99
module = " lspconfig" ,
100
100
},
101
- [" LuaSnip" ] = {
101
+ [" nvim-cmp" ] = {
102
+ " hrsh7th/nvim-cmp" ,
103
+ commit = " 706371f1300e7c0acb98b346f80dad2dd9b5f679" ,
104
+ requires = {
102
105
" L3MON4D3/LuaSnip" ,
103
106
commit = " 53e812a6f51c9d567c98215733100f0169bcc20a" ,
104
107
module = " luasnip" ,
105
108
},
106
- [" nvim-cmp" ] = {
107
- " hrsh7th/nvim-cmp" ,
108
- commit = " 706371f1300e7c0acb98b346f80dad2dd9b5f679" ,
109
109
},
110
110
[" cmp-nvim-lua" ] = {
111
111
" hrsh7th/cmp-nvim-lua" ,
@@ -202,6 +202,7 @@ lsp.configs["nvim-cmp"] = function()
202
202
if not cmp_ok or not luasnip_ok then
203
203
return
204
204
end
205
+ luasnip .config .set_config (doom .features .lsp .settings .snippets )
205
206
206
207
local replace_termcodes = utils .replace_termcodes
207
208
@@ -395,8 +396,5 @@ lsp.binds = {
395
396
},
396
397
},
397
398
}
398
- lsp .configs [" LuaSnip" ] = function ()
399
- require (" luasnip" ).config .set_config (doom .features .snippets .settings )
400
- end
401
399
402
400
return lsp
Load Diff This file was deleted.
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ return {
15
15
" comment" , -- Adds keybinds to comment in any language
16
16
" linter" , -- Linting and formatting for languages
17
17
" lsp" , -- Code completion
18
- -- "snippets", -- Code snippets for all languages
18
+ " extra_snippets " , -- Code snippets for all languages
19
19
20
20
-- Editor
21
21
" auto_session" , -- Remember sessions between loads
You can’t perform that action at this time.
0 commit comments