diff --git a/lib/solargraph/api_map.rb b/lib/solargraph/api_map.rb
index <HASH>..<HASH> 100755
--- a/lib/solargraph/api_map.rb
+++ b/lib/solargraph/api_map.rb
@@ -493,6 +493,11 @@ module Solargraph
           meths += yard_map.get_instance_methods('Module')

         end

       end

+      if namespace == '' and root == ''

+        config.domains.each do |d|

+          meths.concat get_instance_methods(d)

+        end

+      end

       strings = meths.map(&:to_s)

       live_map.get_methods(namespace, root, 'instance', visibility.include?(:private)).each do |m|

         next if strings.include?(m) or !m.match(/^[a-z]/i)

diff --git a/lib/solargraph/code_map.rb b/lib/solargraph/code_map.rb
index <HASH>..<HASH> 100755
--- a/lib/solargraph/code_map.rb
+++ b/lib/solargraph/code_map.rb
@@ -233,8 +233,8 @@ module Solargraph
               end

               result += api_map.get_constants('')

               result += api_map.get_instance_methods('Kernel')

-              result += api_map.get_methods('')

-              result += api_map.get_instance_methods('')

+              result += api_map.get_methods('', namespace)

+              result += api_map.get_instance_methods('', namespace)

             else

               result.concat api_map.get_instance_methods(type)

             end
Infer return types from domain (DSL) methods.