From 2c8ed5dec3affc75252f10e498839944a6d39f01 Mon Sep 17 00:00:00 2001 From: Dimitris Dimitropoulos Date: Mon, 11 Aug 2025 21:34:04 +0300 Subject: fix(elmls): update config to 0.11+ - Use vim.bo[bufnr] instead of nvim_buf_get_option --- lsp/elmls.lua | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lsp') diff --git a/lsp/elmls.lua b/lsp/elmls.lua index a7f27789..33ff9eb4 100644 --- a/lsp/elmls.lua +++ b/lsp/elmls.lua @@ -15,7 +15,7 @@ return { filetypes = { 'elm' }, root_dir = function(bufnr, on_dir) local fname = api.nvim_buf_get_name(bufnr) - local filetype = api.nvim_buf_get_option(0, 'filetype') + local filetype = vim.bo[bufnr].filetype if filetype == 'elm' or (filetype == 'json' and fname:match 'elm%.json$') then on_dir(vim.fs.root(fname, 'elm.json')) return -- cgit v1.2.3-70-g09d2