Skip to content

Commit 695ab91

Browse files
Remove nowrap setting from capture window.
1 parent 65bc2e3 commit 695ab91

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

lua/orgmode/capture/init.lua

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ function Capture:open_template(template)
4040
local content = self.templates:compile(template)
4141
vim.cmd('16split ' .. vim.fn.tempname())
4242
vim.cmd([[setf org]])
43-
vim.cmd([[setlocal bufhidden=wipe nobuflisted nolist noswapfile nowrap nofoldenable]])
43+
vim.cmd([[setlocal bufhidden=wipe nobuflisted nolist noswapfile nofoldenable]])
4444
vim.api.nvim_buf_set_lines(0, 0, -1, true, content)
4545
self.templates:setup()
4646
vim.api.nvim_buf_set_var(0, 'org_template', template)
@@ -220,7 +220,9 @@ function Capture.autocomplete_refile(arg_lead)
220220
if not selected_file then
221221
return vim.tbl_filter(function(file)
222222
return file:match('^' .. vim.pesc(parts[1]))
223-
end, vim.tbl_keys(valid_filenames))
223+
end, vim.tbl_keys(
224+
valid_filenames
225+
))
224226
end
225227

226228
local agenda_file = Files.get(selected_file)

0 commit comments

Comments
 (0)