chore: update custom config

This commit is contained in:
vel 2023-12-26 00:46:38 -08:00
parent 5862f80607
commit e89febfd85
Signed by: velvox
GPG Key ID: 59D9762F674151DF
7 changed files with 49 additions and 22 deletions

View File

@ -40,7 +40,8 @@ return {
}, },
}, },
disabled = { -- disable formatting capabilities for the listed language servers disabled = { -- disable formatting capabilities for the listed language servers
-- "sumneko_lua", -- disable lua_ls formatting capability if you want to use StyLua to format your lua code
-- "lua_ls",
}, },
timeout_ms = 1000, -- default format timeout timeout_ms = 1000, -- default format timeout
-- filter = function(client) -- fully override the default formatting function -- filter = function(client) -- fully override the default formatting function

View File

@ -7,11 +7,23 @@ return {
-- first key is the mode -- first key is the mode
n = { n = {
-- second key is the lefthand side of the map -- second key is the lefthand side of the map
-- navigate buffer tabs with `H` and `L`
-- L = {
-- function() require("astronvim.utils.buffer").nav(vim.v.count > 0 and vim.v.count or 1) end,
-- desc = "Next buffer",
-- },
-- H = {
-- function() require("astronvim.utils.buffer").nav(-(vim.v.count > 0 and vim.v.count or 1)) end,
-- desc = "Previous buffer",
-- },
-- mappings seen under group name "Buffer" -- mappings seen under group name "Buffer"
["<leader>bn"] = { "<cmd>tabnew<cr>", desc = "New tab" },
["<leader>bD"] = { ["<leader>bD"] = {
function() function()
require("astronvim.utils.status").heirline.buffer_picker(function(bufnr) require("astronvim.utils.buffer").close(bufnr) end) require("astronvim.utils.status").heirline.buffer_picker(
function(bufnr) require("astronvim.utils.buffer").close(bufnr) end
)
end, end,
desc = "Pick to close", desc = "Pick to close",
}, },

View File

@ -16,6 +16,7 @@ return {
diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on) diagnostics_mode = 3, -- set the visibility of diagnostics in the UI (0=off, 1=only show in status line, 2=virtual text off, 3=all on)
icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing) icons_enabled = true, -- disable icons in the UI (disable if no nerd font is available, requires :PackerSync after changing)
ui_notifications_enabled = true, -- disable notifications when toggling UI elements ui_notifications_enabled = true, -- disable notifications when toggling UI elements
resession_enabled = false, -- enable experimental resession.nvim session management (will be default in AstroNvim v4)
}, },
} }
-- If you need more control, you can use the function()...end notation -- If you need more control, you can use the function()...end notation

View File

@ -1,7 +1,7 @@
return { return {
-- Add the community repository of plugin specifications -- Add the community repository of plugin specifications
"AstroNvim/astrocommunity", "AstroNvim/astrocommunity",
-- example of imporing a plugin, comment out to use it or add your own -- example of importing a plugin, comment out to use it or add your own
-- available plugins can be found at https://github.com/AstroNvim/astrocommunity -- available plugins can be found at https://github.com/AstroNvim/astrocommunity
-- { import = "astrocommunity.colorscheme.catppuccin" }, -- { import = "astrocommunity.colorscheme.catppuccin" },

View File

@ -4,23 +4,33 @@ return {
{ {
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
-- overrides `require("mason-lspconfig").setup(...)` -- overrides `require("mason-lspconfig").setup(...)`
opts = { opts = function(_, opts)
-- ensure_installed = { "lua_ls" }, -- add more things to the ensure_installed table protecting against community packs modifying it
}, opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "lua_ls",
})
end,
}, },
-- use mason-null-ls to configure Formatters/Linter installation for null-ls sources -- use mason-null-ls to configure Formatters/Linter installation for null-ls sources
{ {
"jay-babu/mason-null-ls.nvim", "jay-babu/mason-null-ls.nvim",
-- overrides `require("mason-null-ls").setup(...)` -- overrides `require("mason-null-ls").setup(...)`
opts = { opts = function(_, opts)
-- ensure_installed = { "prettier", "stylua" }, -- add more things to the ensure_installed table protecting against community packs modifying it
}, opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "prettier",
-- "stylua",
})
end,
}, },
{ {
"jay-babu/mason-nvim-dap.nvim", "jay-babu/mason-nvim-dap.nvim",
-- overrides `require("mason-nvim-dap").setup(...)` -- overrides `require("mason-nvim-dap").setup(...)`
opts = { opts = function(_, opts)
-- ensure_installed = { "python" }, -- add more things to the ensure_installed table protecting against community packs modifying it
}, opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "python",
})
end,
}, },
} }

View File

@ -1,6 +1,9 @@
return { return {
"nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter",
opts = { opts = function(_, opts)
-- ensure_installed = { "lua" }, -- add more things to the ensure_installed table protecting against community packs modifying it
}, opts.ensure_installed = require("astronvim.utils").list_insert_unique(opts.ensure_installed, {
-- "lua"
})
end,
} }