fixed tailwindcss autocomplete for htmldjango
This commit is contained in:
@@ -39,6 +39,7 @@ local config = {
|
|||||||
local function buf_set_keymap(...)
|
local function buf_set_keymap(...)
|
||||||
vim.api.nvim_buf_set_keymap(bufnr, ...)
|
vim.api.nvim_buf_set_keymap(bufnr, ...)
|
||||||
end
|
end
|
||||||
|
|
||||||
local function buf_set_option(...)
|
local function buf_set_option(...)
|
||||||
vim.api.nvim_buf_set_option(bufnr, ...)
|
vim.api.nvim_buf_set_option(bufnr, ...)
|
||||||
end
|
end
|
||||||
@@ -256,6 +257,14 @@ require("nvim-lsp-installer").on_server_ready(function(server)
|
|||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
elseif server.name == "html" then
|
||||||
|
opts.filetypes = { "html", "htmldjango" }
|
||||||
|
elseif server.name == "tailwindcss" then
|
||||||
|
opts.init_options = {
|
||||||
|
userLanguages = {
|
||||||
|
htmldjango = "html",
|
||||||
|
},
|
||||||
|
}
|
||||||
end
|
end
|
||||||
|
|
||||||
server:setup(opts)
|
server:setup(opts)
|
||||||
|
|||||||
Reference in New Issue
Block a user