aboutsummaryrefslogtreecommitdiffstats
path: root/lsp
diff options
context:
space:
mode:
authorDimitris Dimitropoulos <dimitris.dimitropoulos00@gmail.com>2025-08-11 21:34:04 +0300
committerDimitris Dimitropoulos <dimitris.dimitropoulos00@gmail.com>2025-08-11 21:45:11 +0300
commit2c8ed5dec3affc75252f10e498839944a6d39f01 (patch)
tree9d51419f00d4e159f0ae2bad9e147040de16822d /lsp
parentfix(denols): update config to 0.11+ (diff)
downloadnvim-lspconfig-2c8ed5dec3affc75252f10e498839944a6d39f01.tar
nvim-lspconfig-2c8ed5dec3affc75252f10e498839944a6d39f01.tar.gz
nvim-lspconfig-2c8ed5dec3affc75252f10e498839944a6d39f01.tar.bz2
nvim-lspconfig-2c8ed5dec3affc75252f10e498839944a6d39f01.tar.lz
nvim-lspconfig-2c8ed5dec3affc75252f10e498839944a6d39f01.tar.xz
nvim-lspconfig-2c8ed5dec3affc75252f10e498839944a6d39f01.tar.zst
nvim-lspconfig-2c8ed5dec3affc75252f10e498839944a6d39f01.zip
fix(elmls): update config to 0.11+
- Use vim.bo[bufnr] instead of nvim_buf_get_option
Diffstat (limited to 'lsp')
-rw-r--r--lsp/elmls.lua2
1 files changed, 1 insertions, 1 deletions
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