File tree Expand file tree Collapse file tree 3 files changed +12
-1
lines changed
Expand file tree Collapse file tree 3 files changed +12
-1
lines changed Original file line number Diff line number Diff line change 11{
22 "name" : " vim-language-server" ,
3- "version" : " 2.0.1 " ,
3+ "version" : " 2.1.0 " ,
44 "description" : " vim language server" ,
55 "keywords" : [
66 " viml" ,
Original file line number Diff line number Diff line change @@ -19,6 +19,7 @@ import { documents } from "./server/documents";
1919import { next , unsubscribe } from "./server/parser" ;
2020import { selectionRangeProvider } from "./handles/selectionRange" ;
2121import { documentSymbolProvider } from "./handles/documentSymbol" ;
22+ import logger from "./common/logger" ;
2223
2324// lsp initialize
2425connection . onInitialize ( ( param : InitializeParams ) => {
@@ -141,5 +142,9 @@ connection.onSelectionRanges(selectionRangeProvider);
141142// document symbols
142143connection . onDocumentSymbol ( documentSymbolProvider ) ;
143144
145+ connection . onNotification ( '$/change/iskeyword' , ( iskeyword : string ) => {
146+ config . changeByKey ( 'iskeyword' , iskeyword )
147+ } )
148+
144149// lsp start
145150connection . listen ( ) ;
Original file line number Diff line number Diff line change @@ -8,6 +8,12 @@ export default {
88 conf = config ;
99 } ,
1010
11+ changeByKey ( key : string , value : any ) {
12+ if ( conf ) {
13+ conf [ key ] = value
14+ }
15+ } ,
16+
1117 get iskeyword ( ) : string {
1218 return conf && conf . iskeyword || "" ;
1319 } ,
You can’t perform that action at this time.
0 commit comments