From 7da74cae47b0962c78f85e8a765ee451152d6c54 Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Sun, 9 Jun 2024 20:27:24 +0300 Subject: nvim: update deprecated function nvim_buf_get_option --- .config/nvim/lua/plugins/cmp.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.config/nvim/lua/plugins/cmp.lua b/.config/nvim/lua/plugins/cmp.lua index 677544c..a8e04d7 100644 --- a/.config/nvim/lua/plugins/cmp.lua +++ b/.config/nvim/lua/plugins/cmp.lua @@ -56,7 +56,7 @@ return { cmp.setup({ enabled = function() -- disable autocompletion in telescope prompt - local buftype = vim.api.nvim_buf_get_option(0, "buftype") + local buftype = vim.api.nvim_get_option_value("buftype", {}) return buftype ~= "prompt" end, -- cgit v1.2.3-70-g09d2