Skip to content
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
4 changes: 2 additions & 2 deletions lua/cmp-tw2css/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,14 @@ end
---@param lang string
---@return boolean
local function is_stylesheet(lang)
return lang == "css" or lang == "scss"
return lang == "css" or lang == "scss" or lang == "svelte"
end

--- Get the language set to the buffer
---@param bufnr number
local function get_buf_lang(bufnr)
bufnr = bufnr or vim.api.nvim_get_current_buf()
return vim.api.nvim_buf_get_option(bufnr, "ft")
return vim.bo[bufnr].filetype
end

---@return boolean
Expand Down