Skip to content

fix(config): replace deprecated buffer option API - #150

Open
khaneliman wants to merge 1 commit into
uga-rosa:mainfrom
khaneliman:fix/deprecated-buffer-option-api
Open

khaneliman wants to merge 1 commit into
uga-rosa:mainfrom
khaneliman:fix/deprecated-buffer-option-api

Conversation

@khaneliman

@khaneliman khaneliman commented Sep 1, 2026 •

Copy link
Copy Markdown

Summary

Use the current Neovim API to read the active buffer's filetype.

Why

nvim_buf_get_option() is deprecated.

What changed

  • Use nvim_get_option_value("filetype", { buf = 0 }).

Testing

  • stylua --check lua/ccc/kit/App/Config.lua
  • Headless current-buffer option probe

Related Issue(s)

None.

Target buffer zero explicitly through the current option-value API.
@khaneliman
khaneliman force-pushed the fix/deprecated-buffer-option-api branch from 3a9a219 to c480852 Compare September 1, 2026 16:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant