Skip to content

Commit b2573b0

Browse files
committed
doc: update neovim statusline example
1 parent 6c18dd6 commit b2573b0

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

README.md

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -181,8 +181,7 @@ the following function:
181181

182182
```lua
183183
local function arduino_status()
184-
local ft = vim.api.nvim_buf_get_option(0, "ft")
185-
if ft ~= "arduino" then
184+
if vim.bo.filetype ~= "arduino" then
186185
return ""
187186
end
188187
local port = vim.fn["arduino#GetPort"]()

0 commit comments

Comments
 (0)