fix(lsp): template generation for filetypes with dots (#3833)

This commit is contained in:
LostNeophyte 2023-02-11 18:01:22 +01:00 committed by GitHub
parent c27d6a6c3e
commit baf71343f0
WARNING! Although there is a key with this ID in the database it does not verify this commit! This commit is SUSPICIOUS.
GPG key ID: 4AEE18F83AFDEB23

View file

@ -44,6 +44,7 @@ function M.generate_ftplugin(server_name, dir)
end
for _, filetype in ipairs(filetypes) do
filetype = filetype:match "%.([^.]*)$" or filetype
local filename = join_paths(dir, filetype .. ".lua")
local setup_cmd = string.format([[require("lvim.lsp.manager").setup(%q)]], server_name)
-- print("using setup_cmd: " .. setup_cmd)