Skip to content

Commit

Permalink
vim: fix go autocompletion
Browse files Browse the repository at this point in the history
  • Loading branch information
techgaun committed Feb 8, 2023
1 parent f88b304 commit fdd390b
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
6 changes: 6 additions & 0 deletions .SpaceVim.d/autoload/myspacevim.vim
Original file line number Diff line number Diff line change
Expand Up @@ -241,3 +241,9 @@ function! myspacevim#before() abort
let g:prettier#autoformat_require_pragma = 0
endfunction

function! myspacevim#after() abort
call deoplete#custom#option('omni_patterns', {
\ 'go': '[^. *\t]\.\w*',
\})
endfunction
1 change: 1 addition & 0 deletions .SpaceVim.d/init.toml
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@
project_rooter_outermost = false

bootstrap_before = 'myspacevim#before'
bootstrap_after = 'myspacevim#after'

# Enable autocomplete layer
[[layers]]
Expand Down

0 comments on commit fdd390b

Please sign in to comment.