Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(lspconfig): add hook before and not after #92

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion lua/neoconf/util.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ end
---@param opts { on_config: fun(config, root_dir:string, original_config), root_dir: fun(), name: string }
function M.on_config(opts)
local lsputil = require("lspconfig.util")
local hook = lsputil.add_hook_after
local hook = lsputil.add_hook_before

lsputil.on_setup = hook(lsputil.on_setup, function(initial_config)
if opts.on_config then
Expand Down