File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -71,7 +71,12 @@ def name(self) -> str:
7171
7272 @property
7373 def config (self ) -> ClientConfig :
74- settings = sublime .load_settings ("LSP-vue.sublime-settings" )
74+ settings = sublime .load_settings ("LSP-vue.sublime-settings" )
75+ config = settings .get ('config' )
76+ view = sublime .active_window ().active_view ()
77+ if view is not None :
78+ config ['vetur' ]['format' ]['options' ]['tabs_size' ] = view .settings ().get ("tab_size" , 4 )
79+ config ['vetur' ]['format' ]['options' ]['useTabs' ] = not view .settings ().get ("translate_tabs_to_spaces" , False )
7580 return ClientConfig (
7681 name = 'lsp-vue' ,
7782 binary_args = [
@@ -81,7 +86,7 @@ def config(self) -> ClientConfig:
8186 tcp_port = None ,
8287 enabled = True ,
8388 init_options = {
84- "config" : settings . get ( ' config' )
89+ "config" : config
8590 },
8691 settings = dict (),
8792 env = dict (),
You can’t perform that action at this time.
0 commit comments