diff --git a/lazy-lock.json b/lazy-lock.json index d069783..7ffa6dd 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -25,7 +25,7 @@ "none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" }, "none-ls.nvim": { "branch": "main", "commit": "0d42ba8d506242b2252d2d2885a7f6f4f5b2bcb2" }, "nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" }, - "nvim-autopairs": { "branch": "master", "commit": "dbfc1c34bed415906395db8303c71039b3a3ffb4" }, + "nvim-autopairs": { "branch": "master", "commit": "4f41e5940bc0443fdbe5f995e2a596847215cd2a" }, "nvim-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" }, "nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" }, "nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" }, diff --git a/lua/custom/autocmd.lua b/lua/custom/autocmd.lua index 3a3bd7e..6805144 100644 --- a/lua/custom/autocmd.lua +++ b/lua/custom/autocmd.lua @@ -14,7 +14,13 @@ end local term_program = vim.fn.getenv("TERM_PROGRAM") if term_program == "WezTerm" then - vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"') + -- vim.cmd('silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"') + -- create autocmd on insertEnter + vim.api.nvim_create_autocmd("BufRead", { + group = vim.api.nvim_create_augroup("BufRead", { clear = true }), + command = 'silent !wezterm cli set-tab-title "' .. _get_folder_name() .. '"', + desc = "Set Folder Name", + }) end vim.api.nvim_create_autocmd("ExitPre", { diff --git a/lua/plugins/init.lua b/lua/plugins/init.lua index bb345c4..50dc804 100644 --- a/lua/plugins/init.lua +++ b/lua/plugins/init.lua @@ -269,6 +269,12 @@ return { }, scope = { enabled = false }, exclude = { + buftypes = { + "nofile", + "prompt", + "quickfix", + "terminal", + }, filetypes = { "help", "alpha", @@ -281,6 +287,10 @@ return { "notify", "toggleterm", "lazyterm", + "NvimTree", + "aerial", + "neogitstatus", + "startify", }, }, }, diff --git a/lua/user/lsp/settings/tailwindcss.lua b/lua/user/lsp/settings/tailwindcss.lua new file mode 100644 index 0000000..5f8dea5 --- /dev/null +++ b/lua/user/lsp/settings/tailwindcss.lua @@ -0,0 +1,92 @@ +return { + cmd = { "tailwindcss-language-server", "--stdio" }, + filetypes = { + "aspnetcorerazor", + "astro", + "astro-markdown", + "blade", + "clojure", + "django-html", + "htmldjango", + "edge", + "eelixir", + "elixir", + "ejs", + "erb", + "eruby", + "gohtml", + "gohtmltmpl", + "haml", + "handlebars", + "hbs", + "html", + "html-eex", + "heex", + "jade", + "leaf", + "liquid", + "markdown", + "mdx", + "mustache", + "njk", + "nunjucks", + "php", + "razor", + "slim", + "twig", + "css", + "less", + "postcss", + "sass", + "scss", + "stylus", + "sugarss", + "javascript", + "javascriptreact", + "reason", + "rescript", + "typescript", + "typescriptreact", + "vue", + "svelte", + "templ", + }, + -- init options + init_options = { + userLanguages = { + eelixir = "html-eex", + eruby = "erb", + templ = "html", + }, + }, + -- root dir + root_dir = root_pattern( + "tailwind.config.js", + "tailwind.config.cjs", + "tailwind.config.mjs", + "tailwind.config.ts", + "postcss.config.js", + "postcss.config.cjs", + "postcss.config.mjs", + "postcss.config.ts", + "package.json", + "node_modules", + ".git" + ), + -- settings + settings = { + tailwindCSS = { + classAttributes = { "class", "className", "class:list", "classList", "ngClass" }, + lint = { + cssConflict = "warning", + invalidApply = "error", + invalidConfigPath = "error", + invalidScreen = "error", + invalidTailwindDirective = "error", + invalidVariant = "error", + recommendedVariantOrder = "warning", + }, + validate = true, + }, + }, +}