mirror of
https://github.com/nix-community/nixvim.git
synced 2025-12-19 07:21:12 +01:00
plugins/lualine: drop deprecated nvim_buf_get_option
Use vim.bo[0].filetype instead of vim.api.nvim_buf_get_option().
This commit is contained in:
parent
53e19bd5e9
commit
908921b771
1 changed files with 1 additions and 1 deletions
|
|
@ -291,7 +291,7 @@ lib.nixvim.plugins.mkNeovimPlugin {
|
||||||
__unkeyed-1.__raw = ''
|
__unkeyed-1.__raw = ''
|
||||||
function()
|
function()
|
||||||
local msg = ""
|
local msg = ""
|
||||||
local buf_ft = vim.api.nvim_buf_get_option(0, 'filetype')
|
local buf_ft = vim.bo[0].filetype
|
||||||
local clients = vim.lsp.get_active_clients()
|
local clients = vim.lsp.get_active_clients()
|
||||||
if next(clients) == nil then
|
if next(clients) == nil then
|
||||||
return msg
|
return msg
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue