Skip to content

Commit 68c4f9e

Browse files
Remove checks for loaded ftplugin and indent
1 parent 41bae5b commit 68c4f9e

File tree

2 files changed

+2
-12
lines changed

2 files changed

+2
-12
lines changed

ftplugin/org.vim

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
if exists('b:did_ftplugin')
2-
finish
3-
endif
4-
let b:did_ftplugin = 1
5-
61
lua require('orgmode.config'):setup_mappings('org')
72
lua require('orgmode.config'):setup_mappings('text_objects')
83

@@ -14,11 +9,11 @@ function! OrgmodeFoldText()
149
return luaeval('require("orgmode.org.indent").foldtext()')
1510
endfunction
1611

17-
function OrgmodeOmni(findstart, base)
12+
function! OrgmodeOmni(findstart, base)
1813
return luaeval('require("orgmode.org.autocompletion.omni")(_A[1], _A[2])', [a:findstart, a:base])
1914
endfunction
2015

21-
function OrgmodeFormatExpr()
16+
function! OrgmodeFormatExpr()
2217
return luaeval('require("orgmode.org.format")()')
2318
endfunction
2419

indent/org.vim

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
1-
if exists('b:did_indent')
2-
finish
3-
endif
4-
let b:did_indent = 1
5-
61
function! OrgmodeIndentExpr()
72
return luaeval('require("orgmode.org.indent").indentexpr()')
83
endfunction

0 commit comments

Comments
 (0)