mirror of
https://github.com/zoriya/flake.git
synced 2026-08-15 18:43:42 +00:00
Add tailwind lsp
This commit is contained in:
@@ -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,3 +1,4 @@
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
settings = {
|
||||
basedpyright = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
filetypes = { "sh", "zsh", "make" },
|
||||
}
|
||||
|
||||
@@ -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,3 +1,4 @@
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
settings = {
|
||||
json = {
|
||||
|
||||
@@ -1,3 +1,4 @@
|
||||
---@type vim.lsp.Config
|
||||
return {
|
||||
settings = {
|
||||
sqls = {
|
||||
|
||||
@@ -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"
|
||||
}
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -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,
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user