File tree 4 files changed +49
-10
lines changed 4 files changed +49
-10
lines changed Original file line number Diff line number Diff line change @@ -35,13 +35,11 @@ require("lazy").setup({
35
35
{ import = " plugins.colorschemes." .. color_scheme },
36
36
-- StatusLine Select One
37
37
-- { import = "plugins.extras.statusline.lualine" },
38
- { import = " plugins.extras.statusline.luafancy" },
39
- -- { import = "plugins.extras.statusline.galaxyline" },
38
+ -- { import = "plugins.extras.statusline.luafancy" },
39
+ { import = " plugins.extras.statusline.galaxyline" },
40
40
-- Added required configs
41
41
-- { import = "plugins.extras.lsp" },
42
- { import = " plugins.extras.dashboard.bufferline" },
43
42
{ import = " plugins.extras.wilder" },
44
- { import = " plugins.extras.figlet" },
45
43
{ import = " plugins.extras.tmux" },
46
44
{ import = " plugins.extras.scalpel" },
47
45
{ import = " plugins.extras.harpoon" },
Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ opt.fillchars = {
60
60
diff = " ╱" ,
61
61
eob = " " ,
62
62
}
63
- opt .list = true
63
+ opt .list = false
64
64
opt .listchars = {
65
65
tab = " >>>" ,
66
66
trail = " ·" ,
Original file line number Diff line number Diff line change 1
1
local M = {}
2
2
3
- local status_cmp , cmp = pcall (require , " cmp" )
4
- if (not status_cmp ) then
3
+ local cmp_status_ok , cmp = pcall (require , " cmp" )
4
+ if (not cmp_status_ok ) then
5
5
vim .notify (" error loading cmp" )
6
6
return
7
7
end
8
8
9
- local status_luasnip , luasnip = pcall (require , " luasnip" )
10
- if (not status_luasnip ) then
9
+ local snip_status_ok , luasnip = pcall (require , " luasnip" )
10
+ if (not snip_status_ok ) then
11
11
vim .notify (" error loading luasnip" )
12
12
return
13
13
end
@@ -184,7 +184,13 @@ function M.setup()
184
184
},
185
185
}
186
186
},
187
- preselect = cmp .PreselectMode .Item ,
187
+ -- preselect = cmp.PreselectMode.Item,
188
+ preselect = cmp .PreselectMode .None ,
189
+ snippet = {
190
+ expand = function (args )
191
+ luasnip .lsp_expand (args .body ) -- For `luasnip` users.
192
+ end ,
193
+ },
188
194
sorting = {
189
195
priority_weight = 2 ,
190
196
comparators = {
Original file line number Diff line number Diff line change 108
108
)
109
109
)
110
110
111
+ cs (" readfile" ,
112
+ fmt ([[
113
+ file, err := os.Open({})
114
+ if err != nil {{
115
+ fmt.Printf("Error Opening The File: %v\n", err)
116
+ }}
117
+ defer file.Close()
118
+
119
+ // import "bufio"
120
+ scanner := bufio.NewScanner(file)
121
+ for scanner.Scan() {{
122
+ fmt.Println(scanner.Text())
123
+ }}
124
+
125
+ if err = scanner.Err(); err != nil {{
126
+ fmt.Printf("Error Reading File: %v\n", err)
127
+ }}
128
+ ]] , {
129
+ i (1 , " filename" )
130
+ })
131
+ )
132
+
133
+ cs (" jsonread" ,
134
+ fmt ([[
135
+ // import "encoding/json"
136
+ err := json.Unmarshal([]byte({}), &{}); if err != nil {{
137
+ {}
138
+ }}
139
+ ]] , {
140
+ i (1 , " json" ),
141
+ i (2 , " object" ),
142
+ i (3 , " panic()" ),
143
+ })
144
+ )
145
+
111
146
112
147
return snippets , autosnippets
You can’t perform that action at this time.
0 commit comments