diff options
author | kylo252 <[email protected]> | 2022-08-01 09:54:53 +0200 |
---|---|---|
committer | kylo252 <[email protected]> | 2022-08-01 09:54:53 +0200 |
commit | a1ffa3c945a000cc39fb3ee97573e2c37be68583 (patch) | |
tree | 4283491c631be9adfc29a2f3351a020a6b6f6a20 /lua/lvim/lsp | |
parent | 71de455e7886a0085f9c32059a3327217f9833d7 (diff) | |
parent | 1d9b85a50edd5ef643cf81974e92a5121645de19 (diff) |
Merge branch 'rolling'1.1.4
Diffstat (limited to 'lua/lvim/lsp')
-rw-r--r-- | lua/lvim/lsp/manager.lua | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lua/lvim/lsp/manager.lua b/lua/lvim/lsp/manager.lua index 9e898841..00643815 100644 --- a/lua/lvim/lsp/manager.lua +++ b/lua/lvim/lsp/manager.lua @@ -37,9 +37,9 @@ end -- which seems to occur only when attaching to single-files local function client_is_configured(server_name, ft) ft = ft or vim.bo.filetype - local active_autocmds = vim.split(vim.fn.execute("autocmd FileType " .. ft), "\n") + local active_autocmds = vim.api.nvim_get_autocmds { event = "FileType", pattern = ft } for _, result in ipairs(active_autocmds) do - if result:match(server_name) then + if result.command:match(server_name) then Log:debug(string.format("[%q] is already configured", server_name)) return true end |