debug bufferline due to update

This commit is contained in:
2025-08-20 10:20:04 +02:00
parent fbead62967
commit 5f67b259c6
3 changed files with 56 additions and 55 deletions

View File

@@ -4,14 +4,14 @@ if not ok then
return
end
--- Plugin options
local frappe = require("catppuccin.palettes").get_palette("frappe")
local opts = {
options = {
-- mode = "tabs",
separator_style = "slant",
},
highlights = require("catppuccin.groups.integrations.bufferline").get({
highlights = require("catppuccin.groups.integrations.bufferline").get_theme({
styles = { "italic", "bold" },
custom = {
all = {
@@ -222,7 +222,6 @@ local opts = {
}),
}
--- Load plugin
bufferline.setup(opts)
--- Override keymaps

View File

@@ -20,16 +20,20 @@ lspconfig.ansiblels.setup({
})
mason_tool_installer.setup({
ensure_installed = { "ansible-lint" },
ensure_installed = {
"ansible-lint",
"prettier",
},
})
conform.setup({
formatters_by_ft = {
yaml = { "ansible-lint" },
yaml = { "prettier" },
yml = { "prettier" },
},
format_on_save = {
async = false,
timeout_ms = 500,
timeout_ms = 2000,
lsp_format = "fallback",
},
})
@@ -43,6 +47,7 @@ vim.keymap.set({ "n", "v" }, "<leader>lf", function()
end, { desc = "Format" })
lint.linters_by_ft = {
yaml = { "ansible-lint" },
yml = { "ansible-lint" },
}

View File

@@ -1,8 +1,5 @@
local ok, lspconfig, conform, lint = pcall(function()
return
require("lspconfig"),
require("conform"),
require("lint")
return require("lspconfig"), require("conform"), require("lint")
end)
if not ok then
@@ -18,42 +15,42 @@ lspconfig.nixd.setup({
nixpkgs = {
expr = "import <nixpkgs> { }",
},
-- formatting = {
-- command = { "nixfmt" },
-- },
formatting = {
command = { "nixfmt" },
},
},
},
})
-- conform.setup({
-- formatters_by_ft = {
-- nix = { "nixfmt" },
-- },
-- format_on_save = {
-- async = false,
-- timeout_ms = 500,
-- lsp_format = "fallback",
-- },
-- })
--
-- vim.keymap.set({ "n", "v" }, "<leader>lf", function()
-- conform.format({
-- async = false,
-- timeout_ms = 500,
-- lsp_format = "fallback",
-- })
-- end, { desc = "Format" })
conform.setup({
formatters_by_ft = {
nix = { "nixfmt" },
},
format_on_save = {
async = false,
timeout_ms = 500,
lsp_format = "fallback",
},
})
-- lint.linters_by_ft = {
-- lua = { "luacheck" },
-- }
--
-- vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
-- callback = function()
-- lint.try_lint()
-- end,
-- })
--
-- vim.keymap.set("n", "<leader>ll", function()
-- lint.try_lint()
-- end, { desc = "Lint" })
vim.keymap.set({ "n", "v" }, "<leader>lf", function()
conform.format({
async = false,
timeout_ms = 500,
lsp_format = "fallback",
})
end, { desc = "Format" })
lint.linters_by_ft = {
lua = { "luacheck" },
}
vim.api.nvim_create_autocmd({ "BufEnter", "BufWritePost", "InsertLeave" }, {
callback = function()
lint.try_lint()
end,
})
vim.keymap.set("n", "<leader>ll", function()
lint.try_lint()
end, { desc = "Lint" })