feat: add tailwindcss

This commit is contained in:
Fabio Lenherr 2023-02-23 10:42:09 +01:00
parent cb64b79de9
commit b3102f091f
5 changed files with 69 additions and 7 deletions

14
nvim/lua/plugins/cmp.lua Normal file
View file

@ -0,0 +1,14 @@
return {
"hrsh7th/nvim-cmp",
lazy = true,
dependencies = {
{ "roobert/tailwindcss-colorizer-cmp.nvim", config = true },
},
opts = function(_, opts)
local format_kinds = opts.formatting.format
opts.formatting.format = function(entry, item)
format_kinds(entry, item)
return require("tailwindcss-colorizer-cmp").formatter(entry, item)
end
end,
}

View file

@ -38,6 +38,49 @@ return {
---@type lspconfig.options
servers = {
jsonls = {},
tailwindcss = {},
cssls = {},
html = {},
clangd = {},
pyright = {},
cmake = {},
bashls = {},
ansiblels = {},
marksman = {},
asm_lsp = {},
tsserver = {
settings = {
typescript = {
inlayHints = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
javascript = {
inlayHints = {
includeInlayParameterNameHints = "all",
includeInlayParameterNameHintsWhenArgumentMatchesName = true,
includeInlayFunctionParameterTypeHints = true,
includeInlayVariableTypeHints = true,
includeInlayPropertyDeclarationTypeHints = true,
includeInlayFunctionLikeReturnTypeHints = true,
includeInlayEnumMemberValueHints = true,
},
},
},
},
ltex = {},
jdtls = {},
gopls = {},
sqls = {},
taplo = {},
lemminx = {},
yamlls = {},
lua_ls = {
-- mason = false, -- set to false if you don't want this server to be installed with mason
settings = {

View file

@ -14,7 +14,9 @@ return {
lazy = true,
event = { "BufReadPre", "BufNewFile" },
config = function(_, _)
require("nvim-highlight-colors").setup()
require("nvim-highlight-colors").setup({
enable_tailwind = true,
})
vim.cmd(":hi clear CursorLine")
vim.cmd(":hi clear CursorLineFold")
vim.cmd(":hi clear CursorLineSign")