mirror of
https://github.com/pojokcodeid/nvim-lazy.git
synced 2025-06-22 08:53:31 +02:00
add: update config
This commit is contained in:
parent
41061a53f2
commit
99e49e4087
4 changed files with 110 additions and 2 deletions
|
@ -25,7 +25,7 @@
|
||||||
"none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" },
|
"none-ls-extras.nvim": { "branch": "main", "commit": "f0746bf4f1a21d6e1d2002f671fb9b46d2146de7" },
|
||||||
"none-ls.nvim": { "branch": "main", "commit": "0d42ba8d506242b2252d2d2885a7f6f4f5b2bcb2" },
|
"none-ls.nvim": { "branch": "main", "commit": "0d42ba8d506242b2252d2d2885a7f6f4f5b2bcb2" },
|
||||||
"nui.nvim": { "branch": "main", "commit": "a0fd35fcbb4cb479366f1dc5f20145fd718a3733" },
|
"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-cmp": { "branch": "main", "commit": "ce16de5665c766f39c271705b17fff06f7bcb84f" },
|
||||||
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
"nvim-colorizer.lua": { "branch": "master", "commit": "85855b38011114929f4058efc97af1059ab3e41d" },
|
||||||
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
|
"nvim-lspconfig": { "branch": "master", "commit": "cf3dd4a290084a868fac0e2e876039321d57111c" },
|
||||||
|
|
|
@ -14,7 +14,13 @@ end
|
||||||
|
|
||||||
local term_program = vim.fn.getenv("TERM_PROGRAM")
|
local term_program = vim.fn.getenv("TERM_PROGRAM")
|
||||||
if term_program == "WezTerm" then
|
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
|
end
|
||||||
|
|
||||||
vim.api.nvim_create_autocmd("ExitPre", {
|
vim.api.nvim_create_autocmd("ExitPre", {
|
||||||
|
|
|
@ -269,6 +269,12 @@ return {
|
||||||
},
|
},
|
||||||
scope = { enabled = false },
|
scope = { enabled = false },
|
||||||
exclude = {
|
exclude = {
|
||||||
|
buftypes = {
|
||||||
|
"nofile",
|
||||||
|
"prompt",
|
||||||
|
"quickfix",
|
||||||
|
"terminal",
|
||||||
|
},
|
||||||
filetypes = {
|
filetypes = {
|
||||||
"help",
|
"help",
|
||||||
"alpha",
|
"alpha",
|
||||||
|
@ -281,6 +287,10 @@ return {
|
||||||
"notify",
|
"notify",
|
||||||
"toggleterm",
|
"toggleterm",
|
||||||
"lazyterm",
|
"lazyterm",
|
||||||
|
"NvimTree",
|
||||||
|
"aerial",
|
||||||
|
"neogitstatus",
|
||||||
|
"startify",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|
92
lua/user/lsp/settings/tailwindcss.lua
Normal file
92
lua/user/lsp/settings/tailwindcss.lua
Normal file
|
@ -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,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
}
|
Loading…
Add table
Add a link
Reference in a new issue