Ben Jackson 2 سال پیش
والد
کامیت
f29823631a
4فایلهای تغییر یافته به همراه3 افزوده شده و 7 حذف شده
  1. 2 4
      python/ycm/inlay_hints.py
  2. 0 1
      python/ycm/semantic_highlighting.py
  3. 0 1
      python/ycm/text_properties.py
  4. 1 1
      python/ycm/vimsupport.py

+ 2 - 4
python/ycm/inlay_hints.py

@@ -20,8 +20,6 @@ from ycm.client.inlay_hints_request import InlayHintsRequest
 from ycm.client.base_request import BuildRequestData
 from ycm import vimsupport
 from ycm import text_properties as tp
-import vim
-from ycmd.utils import ToBytes
 
 
 HIGHLIGHT_GROUP = {
@@ -49,6 +47,7 @@ def Initialise():
 
   return True
 
+
 class InlayHints:
   """Stores the inlay hints state for a Vim buffer"""
 
@@ -103,7 +102,7 @@ class InlayHints:
 
     # We're ready to use this response. Clear it (to avoid repeatedly
     # re-polling).
-    self._latest_inlay_hints = [] ;# in case there was an error in request
+    self._latest_inlay_hints = [] # in case there was an error in request
     self._latest_inlay_hints = self._request.Response()
     self._request = None
 
@@ -152,4 +151,3 @@ class InlayHints:
                             {
                               'text': inlay_hint[ 'label' ]
                             } ) )
-

+ 0 - 1
python/ycm/semantic_highlighting.py

@@ -146,4 +146,3 @@ class SemanticHighlighting:
 
     # No need to re-poll
     return True
-

+ 0 - 1
python/ycm/text_properties.py

@@ -71,4 +71,3 @@ def ClearTextProperties( bufnr, prop_id ):
     'all': 1,
   }
   vim.eval( f"prop_remove( { json.dumps( props ) } )" )
-

+ 1 - 1
python/ycm/vimsupport.py

@@ -359,7 +359,7 @@ def AddTextProperty( buffer_number,
       extra_args[ 'end_col' ] = extra_args.pop( 'end_col' ) - 1
     line -= 1
     column -= 1
-    return GetIntValue( 
+    return GetIntValue(
       vim.eval( f'nvim_buf_set_extmark( { buffer_number }, '
                                          f'{ YCM_NEOVIM_NS_ID }, '
                                          f'{ line }, '