Closed Pitometsu closed 6 years ago
We can improve company integration by adding swift keywords:
swift
(eval-after-load 'company-keywords '(add-to-list 'company-keywords-alist '(swift-mode "true" "false" "nil" "available" "column" "elseif" "else" "endif" "file" "function" "if" "line" "selector" "associatedtype" "class" "deinit" "enum" "extension" "fileprivate" "func" "import" "init" "inout" "internal" "let" "open" "operator" "private" "protocol" "public" "static" "struct" "subscript" "typealias" "var" "break" "case" "continue" "default" "defer" "do" "else" "fallthrough" "for" "guard" "if" "in" "repeat" "return" "switch" "where" "while" "as" "catch" "dynamicType" "is" "rethrows" "super" "self" "Self" "throws" "throw" "try" "Protocol" "Type" "and" "assignment" "associativity" "convenience" "didSet" "dynamic" "final" "get" "higherThan" "indirect" "infix" "lazy" "left" "lowerThan" "mutating" "none" "nonmutating" "optional" "override" "postfix" "precedence" "precedencegroup" "prefix" "required" "right" "set" "unowned" "weak" "willSet")))
Surely, will be better to get that list from swift-mode, but currently there's no plain list of keywords there.
swift-mode
Please, prompt the right upstream, where it should be added: here, in company-mode or in swift-mode?
company-mode
@Pitometsu https://github.com/company-mode/company-mode/commit/10807eb0d7086c6c886bbcc06cbbd8c677c6d107
We can improve company integration by adding
swift
keywords:Surely, will be better to get that list from
swift-mode
, but currently there's no plain list of keywords there.Please, prompt the right upstream, where it should be added: here, in
company-mode
or inswift-mode
?