Skip to content

Commit

Permalink
sample init.lua updates
Browse files Browse the repository at this point in the history
  • Loading branch information
ray-x committed Nov 1, 2023
1 parent 1098869 commit 13d48f9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
7 changes: 3 additions & 4 deletions playground/init_lazy.lua
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@ local function load_plugins()
'theHamsta/nvim-dap-virtual-text',
'ray-x/guihua.lua',
},
config = function()
require('go').setup({
config = true,
opts = {
verbose = true,
lsp_cfg = {
handlers = {
Expand All @@ -59,8 +59,7 @@ local function load_plugins()
),
},
}, -- false: do nothing
})
end,
}
},
}
end
Expand Down
2 changes: 2 additions & 0 deletions playground/sampleApp/pkg/findAllSubStr.go
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import (
"sync"
)

// FindAllSubStr function 
func FindAllSubStr(stack, niddle string) (result []int) {
stack = strings.ToLower(stack)
niddle = strings.ToLower(niddle)
Expand All @@ -17,6 +18,7 @@ func FindAllSubStr(stack, niddle string) (result []int) {
return result
}

// FindSubStr function 
func FindSubStr(stack, niddle string) (result int) {
stack = strings.ToLower(stack)
niddle = strings.ToLower(niddle)
Expand Down

0 comments on commit 13d48f9

Please sign in to comment.