Skip to content

Commit

Permalink
chore(nvim): Update deprecated function usages
Browse files Browse the repository at this point in the history
mrjones2014 committed Nov 14, 2024
1 parent bc577ad commit e308b2d
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions nvim/ftplugin/markdown.lua
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
vim.api.nvim_buf_set_option(0, 'wrap', true)
vim.api.nvim_buf_set_option(0, 'linebreak', true)
vim.api.nvim_set_option_value('wrap', true, { buf = 0 })
vim.api.nvim_set_option_value('linebreak', true, { buf = 0 })
2 changes: 1 addition & 1 deletion nvim/lua/my/configure/mini_files.lua
Original file line number Diff line number Diff line change
@@ -13,7 +13,7 @@ return {
end, { buffer = buf })

-- set up ability to confirm changes with :w
vim.api.nvim_buf_set_option(buf, 'buftype', 'acwrite')
vim.api.nvim_set_option_value('buftype', 'acwrite', { buf = buf })
vim.api.nvim_buf_set_name(buf, string.format('mini.files-%s', vim.loop.hrtime()))
vim.api.nvim_create_autocmd('BufWriteCmd', {
buffer = buf,

0 comments on commit e308b2d

Please sign in to comment.