-
Notifications
You must be signed in to change notification settings - Fork 2.1k
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
feat: ltex-ls-plus #3442
base: master
Are you sure you want to change the base?
feat: ltex-ls-plus #3442
Conversation
do | ||
local enabled_keys = {} | ||
for _, ft in ipairs(filetypes) do | ||
local id = get_language_id({}, ft) | ||
if not enabled_keys[id] then | ||
enabled_keys[id] = true | ||
table.insert(enabled_ids, id) | ||
end | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why you not inline these ids in settings ?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local function get_language_id(_, filetype) | ||
local language_id = language_id_mapping[filetype] | ||
if language_id then | ||
return language_id | ||
else | ||
return filetype | ||
end | ||
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
local function get_language_id(_, filetype) | |
local language_id = language_id_mapping[filetype] | |
if language_id then | |
return language_id | |
else | |
return filetype | |
end | |
end | |
local function get_language_id(_, filetype) | |
return language_id_mapping[filetype] or filetype | |
end |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and inline the language_id_mapping in these function
Added LTeX+, a popular fork of LTeX which, unlike LTeX, is actively maintained. It has over 4600 downloads on the VS Marketplace: https://marketplace.visualstudio.com/items?itemName=ltex-plus.vscode-ltex-plus