Skip to content

Commit

Permalink
fix(lsp): template generation for filetypes with dots (#3833)
Browse files Browse the repository at this point in the history
  • Loading branch information
LostNeophyte committed Feb 11, 2023
1 parent c27d6a6 commit baf7134
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lua/lvim/lsp/templates.lua
Expand Up @@ -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)
Expand Down

0 comments on commit baf7134

Please sign in to comment.