File tree Expand file tree Collapse file tree 2 files changed +5
-1
lines changed
Expand file tree Collapse file tree 2 files changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,7 @@ local Hyperlinks = require('orgmode.org.hyperlinks')
77local PriorityState = require (' orgmode.objects.priority_state' )
88local TodoState = require (' orgmode.objects.todo_state' )
99local config = require (' orgmode.config' )
10+ local constants = require (' orgmode.utils.constants' )
1011local ts_utils = require (' nvim-treesitter.ts_utils' )
1112local utils = require (' orgmode.utils' )
1213
@@ -440,7 +441,7 @@ function OrgMappings:handle_return(suffix)
440441 end
441442
442443 if # text_edits > 0 then
443- vim .lsp .util .apply_text_edits (text_edits , 0 )
444+ vim .lsp .util .apply_text_edits (text_edits , 0 , constants . default_offset_encoding )
444445
445446 vim .fn .cursor (end_row + 2 + (add_empty_line and 1 or 0 ), 0 ) -- +1 for 0 index and +1 for next line
446447 vim .cmd ([[ startinsert!]] )
Original file line number Diff line number Diff line change 1+ return {
2+ default_offset_encoding = ' utf-16' ,
3+ }
You can’t perform that action at this time.
0 commit comments