Add tailwind lsp

This commit is contained in:
2026-01-30 12:19:46 +01:00
parent 13f4073e88
commit 6c88501b30
8 changed files with 30 additions and 2 deletions
+2 -1
View File
@@ -51,6 +51,7 @@
jn = "jj new";
jnt = "jj new 'trunk()'";
jc = "jj commit";
jd = "jj desc";
jcm = "jj commit -m";
je = "jj edit";
jb = "jj bookmark";
@@ -58,7 +59,7 @@
jf = "jj git fetch";
jl = "jj log";
jla = "jj log -r 'all()'";
jd = "jj diff";
jdf = "jj diff";
jcl = "jj git clone --colocate";
jrb = "jj rebase";
jrbt = "jj rebase -o 'trunk()'";
+1
View File
@@ -1,3 +1,4 @@
---@type vim.lsp.Config
return {
settings = {
basedpyright = {
+1
View File
@@ -1,3 +1,4 @@
---@type vim.lsp.Config
return {
filetypes = { "sh", "zsh", "make" },
}
+1
View File
@@ -8,6 +8,7 @@ vim.api.nvim_create_autocmd('LspAttach', {
end,
})
---@type vim.lsp.Config
return {
-- Disable lunching from node_modules (no nix binary)
cmd = { "biome", "lsp-proxy" },
+1
View File
@@ -1,3 +1,4 @@
---@type vim.lsp.Config
return {
settings = {
json = {
+1
View File
@@ -1,3 +1,4 @@
---@type vim.lsp.Config
return {
settings = {
sqls = {
+21
View File
@@ -0,0 +1,21 @@
---@type vim.lsp.Config
return {
settings = {
tailwindCSS = {
classAttributes = {
"class",
"className",
"class:list",
"classList",
"ngClass",
".+ClassName"
},
classFunctions = {
"tw",
"clsx",
"tw\\.[a-z-]+",
"cn"
}
},
},
}
+2 -1
View File
@@ -1,11 +1,12 @@
-- use biome for formatting
---@type vim.lsp.Config
return {
---@param client vim.lsp.Client
on_init = function(client, _)
if client.server_capabilities then
client.server_capabilities["documentFormattingProvider"] = false
client.server_capabilities["documentRangeFormattingProvider"] = false
client.server_capabilities["documentOnTypeFormattingProvider"] = false
client.server_capabilities["documentOnTypeFormattingProvider"] = nil
end
end,
}