Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
Skip to content

Commit 94894f3

Browse files
fix(float): Set filetype for capture window
Fixes #832
1 parent 956897b commit 94894f3

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

lua/orgmode/utils/init.lua

+1-2
Original file line numberDiff line numberDiff line change
@@ -417,7 +417,7 @@ end
417417
function utils.open_tmp_org_window(height, split_mode, border, on_close)
418418
local prev_winnr = vim.api.nvim_get_current_win()
419419
utils.open_window(vim.fn.tempname() .. '.org', height or 16, split_mode, border)
420-
vim.cmd([[setlocal bufhidden=wipe nobuflisted nolist noswapfile nofoldenable]])
420+
vim.cmd([[setlocal filetype=org bufhidden=wipe nobuflisted nolist noswapfile nofoldenable]])
421421
local bufnr = vim.api.nvim_get_current_buf()
422422

423423
if on_close then
@@ -476,7 +476,6 @@ function utils.open_float(name, opts)
476476
height = height,
477477
row = row,
478478
col = col,
479-
style = 'minimal',
480479
border = opts.border,
481480
})
482481
end

0 commit comments

Comments
 (0)