fix(nvim): tailwind now imports the inline-fold extra
This commit is contained in:
1 parent
0d53f90f04
commit
ffe35ac331
10 files changed
+73
-32
No files matched your search
@@ -0,0 +1,18 @@
|
||||
return {
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.formatters_by_ft.python = opts.formatters_by_ft.python or {}
|
||||
table.insert(opts.formatters_by_ft.python, "ruff_format")
|
||||
table.insert(opts.formatters_by_ft.python, "ruff_fix")
|
||||
return opts
|
||||
end,
|
||||
},
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.ensure_installed = opts.ensure_installed or {}
|
||||
vim.list_extend(opts.ensure_installed, { "ruff" })
|
||||
end,
|
||||
},
|
||||
}
|
||||
@@ -1,13 +1,6 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.python" },
|
||||
{
|
||||
"stevearc/conform.nvim",
|
||||
opts = function(_, opts)
|
||||
opts.formatters_by_ft.python = opts.formatters_by_ft.python or {}
|
||||
table.insert(opts.formatters_by_ft.python, "ruff_format")
|
||||
return opts
|
||||
end,
|
||||
},
|
||||
{ import = "lazyvim.plugins.extras.lang.python-semshi" },
|
||||
{
|
||||
"neovim/nvim-lspconfig",
|
||||
opts = {
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
return {
|
||||
{ import = "lazyvim.plugins.extras.lang.tailwind" },
|
||||
{ import = "plugins.extras.ui.inline-fold" },
|
||||
{
|
||||
"williamboman/mason.nvim",
|
||||
opts = function(_, opts)
|
||||
|
||||
@@ -38,7 +38,7 @@ return {
|
||||
enabled = nvim_0_10,
|
||||
},
|
||||
codelens = {
|
||||
enabled = nvim_0_10,
|
||||
enabled = false,
|
||||
},
|
||||
servers = {
|
||||
lua_ls = {
|
||||
|
||||
@@ -0,0 +1,28 @@
|
||||
return {
|
||||
"malbertzard/inline-fold.nvim",
|
||||
init = function()
|
||||
vim.api.nvim_create_autocmd({ "BufEnter", "BufWinEnter" }, {
|
||||
pattern = { "*.html", "*.tsx", "*.jsx" },
|
||||
callback = function(_)
|
||||
if not require("inline-fold.module").isHidden then
|
||||
vim.cmd("InlineFoldToggle")
|
||||
end
|
||||
end,
|
||||
})
|
||||
end,
|
||||
ft = "html",
|
||||
cmd = "InlineFoldToggle",
|
||||
opts = {
|
||||
defaultPlaceholder = "…",
|
||||
queries = {
|
||||
html = {
|
||||
{ pattern = 'class="([^"]*)"' },
|
||||
{ pattern = 'href="(.-)"' },
|
||||
{ pattern = 'src="(.-)"' },
|
||||
},
|
||||
},
|
||||
},
|
||||
keys = {
|
||||
{ "<leader>uI", "<cmd>InlineFoldToggle<CR>", desc = "Toggle Inline Fold" },
|
||||
},
|
||||
}
|
||||
@@ -2,8 +2,7 @@ if not vim.g.vscode then
|
||||
return {}
|
||||
end
|
||||
|
||||
local Config = require("lazy.core.config")
|
||||
local Plugin = require("lazy.core.plugin")
|
||||
local config = require("lazy.core.config")
|
||||
local vscode = require("vscode-neovim")
|
||||
|
||||
local map = vim.keymap.set
|
||||
@@ -33,12 +32,13 @@ local enabled = {
|
||||
"LazyVim",
|
||||
}
|
||||
|
||||
Config.options.checker.enabled = false
|
||||
Config.options.change_detection.enabled = false
|
||||
Config.options.defaults.cond = function(plugin)
|
||||
config.options.checker.enabled = false
|
||||
config.options.change_detection.enabled = false
|
||||
config.options.defaults.cond = function(plugin)
|
||||
return vim.tbl_contains(enabled, plugin.name) or plugin.vscode
|
||||
end
|
||||
|
||||
-- Options
|
||||
vim.o.spell = false
|
||||
vim.opt.timeoutlen = 150 -- To show whichkey without delay
|
||||
vim.notify = vscode.notify
|
||||
|
||||
Reference in new issue
Block a user