Skip to content

Commit

Permalink
fix: Stop using deprecated nvim_get_option
Browse files Browse the repository at this point in the history
  • Loading branch information
andrewferrier committed May 25, 2024
1 parent 8b1a814 commit d202b8f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lua/wrapping/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,8 @@ local function likely_nontextual_language()
end

local function likely_textwidth_set_deliberately()
local textwidth_global = vim.api.nvim_get_option("textwidth")
local textwidth_global =
vim.api.nvim_get_option_value("textwidth", { scope = "global" })
local textwidth_buffer =
vim.api.nvim_get_option_value("textwidth", { buf = 0 })

Expand Down

0 comments on commit d202b8f

Please sign in to comment.