mirror of
https://github.com/hexedtech/codemp.git
synced 2024-11-22 15:24:48 +01:00
fix: force unix fileformat
This commit is contained in:
parent
7245674ddf
commit
a843cf6cb9
1 changed files with 2 additions and 0 deletions
|
@ -136,6 +136,7 @@ vim.api.nvim_create_user_command('Share',
|
||||||
local path = args.fargs[1]
|
local path = args.fargs[1]
|
||||||
local bufnr = vim.api.nvim_get_current_buf()
|
local bufnr = vim.api.nvim_get_current_buf()
|
||||||
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
|
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
|
||||||
|
vim.opt.fileformat = "unix"
|
||||||
M.create(path, vim.fn.join(lines, "\n"))
|
M.create(path, vim.fn.join(lines, "\n"))
|
||||||
hook_callbacks(path, bufnr)
|
hook_callbacks(path, bufnr)
|
||||||
M.attach(path)
|
M.attach(path)
|
||||||
|
@ -151,6 +152,7 @@ vim.api.nvim_create_user_command('Join',
|
||||||
end
|
end
|
||||||
local path = args.fargs[1]
|
local path = args.fargs[1]
|
||||||
local bufnr = vim.api.nvim_get_current_buf()
|
local bufnr = vim.api.nvim_get_current_buf()
|
||||||
|
vim.opt.fileformat = "unix"
|
||||||
hook_callbacks(path, bufnr)
|
hook_callbacks(path, bufnr)
|
||||||
M.attach(path)
|
M.attach(path)
|
||||||
M.listen(path)
|
M.listen(path)
|
||||||
|
|
Loading…
Reference in a new issue