diff options
author | Yigit Sever | 2024-06-09 20:27:24 +0300 |
---|---|---|
committer | Yigit Sever | 2024-06-09 20:27:24 +0300 |
commit | 7da74cae47b0962c78f85e8a765ee451152d6c54 (patch) | |
tree | 7854172303556c1487c7e749e68a3d65f23ae7a1 /.config/nvim | |
parent | 16d865cf406027c5bf13524fed6eace5266c794a (diff) | |
download | dotfiles-7da74cae47b0962c78f85e8a765ee451152d6c54.tar.gz dotfiles-7da74cae47b0962c78f85e8a765ee451152d6c54.tar.bz2 dotfiles-7da74cae47b0962c78f85e8a765ee451152d6c54.zip |
nvim: update deprecated function
nvim_buf_get_option
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/plugins/cmp.lua | 2 |
1 files changed, 1 insertions, 1 deletions
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 { | |||
56 | cmp.setup({ | 56 | cmp.setup({ |
57 | enabled = function() | 57 | enabled = function() |
58 | -- disable autocompletion in telescope prompt | 58 | -- disable autocompletion in telescope prompt |
59 | local buftype = vim.api.nvim_buf_get_option(0, "buftype") | 59 | local buftype = vim.api.nvim_get_option_value("buftype", {}) |
60 | 60 | ||
61 | return buftype ~= "prompt" | 61 | return buftype ~= "prompt" |
62 | end, | 62 | end, |