mirror of
https://github.com/hexedtech/codemp-nvim.git
synced 2024-11-22 15:34:53 +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 bufnr = vim.api.nvim_get_current_buf()
|
||||
local lines = vim.api.nvim_buf_get_lines(bufnr, 0, -1, false)
|
||||
vim.opt.fileformat = "unix"
|
||||
M.create(path, vim.fn.join(lines, "\n"))
|
||||
hook_callbacks(path, bufnr)
|
||||
M.attach(path)
|
||||
|
@ -151,6 +152,7 @@ vim.api.nvim_create_user_command('Join',
|
|||
end
|
||||
local path = args.fargs[1]
|
||||
local bufnr = vim.api.nvim_get_current_buf()
|
||||
vim.opt.fileformat = "unix"
|
||||
hook_callbacks(path, bufnr)
|
||||
M.attach(path)
|
||||
M.listen(path)
|
||||
|
|
Loading…
Reference in a new issue