aboutsummaryrefslogtreecommitdiffstats
path: root/lsp/fennel_ls.lua
diff options
context:
space:
mode:
authorJustin M. Keyes <justinkz@gmail.com>2025-04-23 14:58:31 +0200
committerJustin M. Keyes <justinkz@gmail.com>2025-04-23 15:08:14 +0200
commit79c12bc6e789dc3774a55289cc8fdedbd3b8ca38 (patch)
tree665054da7a577eaa53f155997e8cd84b7366de71 /lsp/fennel_ls.lua
parentrefactor: deprecate util functions (diff)
downloadnvim-lspconfig-79c12bc6e789dc3774a55289cc8fdedbd3b8ca38.tar
nvim-lspconfig-79c12bc6e789dc3774a55289cc8fdedbd3b8ca38.tar.gz
nvim-lspconfig-79c12bc6e789dc3774a55289cc8fdedbd3b8ca38.tar.bz2
nvim-lspconfig-79c12bc6e789dc3774a55289cc8fdedbd3b8ca38.tar.lz
nvim-lspconfig-79c12bc6e789dc3774a55289cc8fdedbd3b8ca38.tar.xz
nvim-lspconfig-79c12bc6e789dc3774a55289cc8fdedbd3b8ca38.tar.zst
nvim-lspconfig-79c12bc6e789dc3774a55289cc8fdedbd3b8ca38.zip
refactor: deprecate util.path.search_ancestors()
Diffstat (limited to 'lsp/fennel_ls.lua')
-rw-r--r--lsp/fennel_ls.lua4
1 files changed, 1 insertions, 3 deletions
diff --git a/lsp/fennel_ls.lua b/lsp/fennel_ls.lua
index bbcb0a99..4023e021 100644
--- a/lsp/fennel_ls.lua
+++ b/lsp/fennel_ls.lua
@@ -7,8 +7,6 @@
--- fennel-ls is configured using the closest file to your working directory named `flsproject.fnl`.
--- All fennel-ls configuration options [can be found here](https://git.sr.ht/~xerool/fennel-ls/tree/HEAD/docs/manual.md#configuration).
-local util = require 'lspconfig.util'
-
return {
cmd = { 'fennel-ls' },
filetypes = { 'fennel' },
@@ -18,7 +16,7 @@ return {
local fnlpath = vim.fs.joinpath(path, 'flsproject.fnl')
return (vim.uv.fs_stat(fnlpath) or {}).type == 'file'
end
- on_dir(util.search_ancestors(fname, has_fls_project_cfg) or vim.fs.root(0, '.git'))
+ on_dir(vim.iter(vim.fs.parents(fname)):find(has_fls_project_cfg) or vim.fs.root(0, '.git'))
end,
settings = {},
capabilities = {