Skip to content

Commit

Permalink
[company-go]: Passes a -source flag to gocode by default
Browse files Browse the repository at this point in the history
I also noticed that the forked gocode does not support `csv-with-package`, and so I changed this at the same time. I am increasingly unsure if this change should be merged, or if the version in MELPA should be repointed to the forked company-go.

Fixes nsf#529
  • Loading branch information
kat-co authored Sep 25, 2018
1 parent 7b1d4e1 commit 18d228d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion emacs-company/company-go.el
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,8 @@ symbol is preceded by a \".\", ignoring `company-minimum-prefix-length'."
(defun company-go--invoke-autocomplete ()
(let ((code-buffer (current-buffer))
(gocode-args (append company-go-gocode-args
(list "-f=csv-with-package"
(list "-source"
"-f=csv"
"autocomplete"
(or (buffer-file-name) "")
(concat "c" (int-to-string (- (point) 1)))))))
Expand Down

0 comments on commit 18d228d

Please sign in to comment.