Skip to content

Commit 61bddf7

Browse files
authored
Revert "Remove checks for loaded ftplugin and indent" (#558)
1 parent f6926df commit 61bddf7

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

ftplugin/org.vim

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

indent/org.vim

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

0 commit comments

Comments
 (0)