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:
71
71
72
72
@property
73
73
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 )
75
80
return ClientConfig (
76
81
name = 'lsp-vue' ,
77
82
binary_args = [
@@ -81,7 +86,7 @@ def config(self) -> ClientConfig:
81
86
tcp_port = None ,
82
87
enabled = True ,
83
88
init_options = {
84
- "config" : settings . get ( ' config' )
89
+ "config" : config
85
90
},
86
91
settings = dict (),
87
92
env = dict (),
You can’t perform that action at this time.
0 commit comments