fix mason

This commit is contained in:
Kasper Juul Hermansen 2023-02-04 17:25:37 +01:00
parent 4027ba20a2
commit dc788b1c00
Signed by: kjuulh
GPG Key ID: 0F95C140730F2F23
5 changed files with 19 additions and 23 deletions

8
plugins/heirline.lua Normal file
View File

@ -0,0 +1,8 @@
return {
"rebelot/heirline.nvim",
opts = function(_, opts)
opts.tabline[2] =
astronvim.status.heirline.make_buflist(astronvim.status.component.tabline_file_info { close_button = false })
return opts
end,
}

View File

@ -1,16 +1,17 @@
return { -- overrides `require("mason-null-ls").setup(...)`
"jay-babu/mason-null-ls.nvim",
config = function(plugin, opts)
plugin.default_config(opts) -- use the default configuration function
config = function(_, opts)
local mason_null_ls = require("mason-null-ls")
local null_ls = require "null-ls"
require("mason-null-ls").setup_handlers { -- setup custom handlers
mason_null_ls.setup(opts)
mason_null_ls.setup_handlers { -- setup custom handlers
prettier = function()
require("null-ls").register(null_ls.builtins.formatting.prettier.with {
condition = function(utils)
return utils.root_has_file "package.json"
or utils.root_has_file ".prettierrc"
or utils.root_has_file ".prettierrc.json"
or utils.root_has_file ".prettierrc.js"
or utils.root_has_file ".prettierrc"
or utils.root_has_file ".prettierrc.json"
or utils.root_has_file ".prettierrc.js"
end,
})
end,

View File

@ -1,10 +1,10 @@
return {
"jay-babu/mason-nvim-dap.nvim",
config = function(self, opts)
self.default_config(opts) -- run default AstroNvim mason-nvim-dap config function
config = function(_, opts)
-- do more configuration as needed
local mason_nvim_dap = require "mason-nvim-dap"
mason_nvim_dap.setup(opts)
mason_nvim_dap.setup_handlers {
python = function(source_name)
local dap = require "dap"

View File

@ -1,13 +0,0 @@
return {
"folke/which-key.nvim",
config = function(plugin, opts)
plugin.default_config(opts)
local wk = require "which-key"
wk.register({
b = { name = "Buffer" },
}, {
mode = "n",
prefix = "<leader>",
})
end,
}

View File

@ -1,12 +1,12 @@
return {
remote = "origin", -- remote to use
--remote = "origin", -- remote to use
--channel = "stable", -- "stable" or "nightly"
channel = "nightly", -- "stable" or "nightly"
--version = "v2.11.7", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY)
--version="latest",
branch = "v3", -- branch name (NIGHTLY ONLY)
--commit = nil, -- commit hash (NIGHTLY ONLY)
pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only)
--pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only)
skip_prompts = false, -- skip prompts about breaking changes
show_changelog = true, -- show the changelog after performing an update
auto_reload = false, -- automatically reload and sync packer after a successful update