diff --git a/init.lua b/init.lua index 2b471bd..112c4d1 100644 --- a/init.lua +++ b/init.lua @@ -1,38 +1,35 @@ return { -- Configure AstroNvim updates updater = { - remote = "origin", -- remote to use - channel = "stable", -- "stable" or "nightly" - version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY) - branch = "nightly", -- branch name (NIGHTLY ONLY) - commit = nil, -- commit hash (NIGHTLY ONLY) - pin_plugins = nil, -- nil, true, false (nil will pin plugins on stable only) - skip_prompts = false, -- skip prompts about breaking changes + remote = "origin", -- remote to use + channel = "stable", -- "stable" or "nightly" + version = "latest", -- "latest", tag name, or regex search like "v1.*" to only do updates before v2 (STABLE ONLY) + branch = "nightly", -- branch name (NIGHTLY ONLY) + commit = nil, -- commit hash (NIGHTLY 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_quit = false, -- automatically quit the current session after a successful update - remotes = { -- easily add new remotes to track + auto_quit = false, -- automatically quit the current session after a successful update + remotes = { -- easily add new remotes to track -- ["remote_name"] = "https://remote_url.come/repo.git", -- full remote url -- ["remote2"] = "github_user/repo", -- GitHub user/repo shortcut, -- ["remote3"] = "github_user", -- GitHub user assume AstroNvim fork }, }, - -- Set colorscheme to use -- colorscheme = "astrodark", colorscheme = "catppuccin-latte", - -- Diagnostics configuration (for vim.diagnostics.config({...})) when diagnostics are on diagnostics = { virtual_text = true, underline = true, }, - lsp = { -- customize lsp formatting options formatting = { -- control auto formatting on save format_on_save = { - enabled = true, -- enable or disable format on save globally + enabled = true, -- enable or disable format on save globally allow_filetypes = { -- enable format on save for specified filetypes only -- "go", }, @@ -54,7 +51,6 @@ return { -- "pyright" }, }, - -- Configure require("lazy").setup() options lazy = { defaults = { lazy = true }, @@ -65,7 +61,6 @@ return { }, }, }, - -- This function is run last and is a good place to configuring -- augroups/autocommands and custom filetypes also this just pure lua so -- anything that doesn't fit in the normal config locations above can go here diff --git a/mappings.lua b/mappings.lua index d87f7de..54af90c 100644 --- a/mappings.lua +++ b/mappings.lua @@ -11,7 +11,10 @@ return { ["bn"] = { "tabnew", desc = "New tab" }, ["bD"] = { 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, desc = "Pick to close", }, @@ -20,6 +23,16 @@ return { ["b"] = { name = "Buffers" }, -- quick save -- [""] = { ":w!", desc = "Save File" }, -- change description but the same command + + [""] = { "k" }, + [""] = { "j" }, + [""] = { "h" }, + [""] = { "l" }, + [""] = { "K" }, + [""] = { "J" }, + [""] = { "H" }, + [""] = { "L" }, + ["lgd"] = { vim.lsp.buf.hover() } }, t = { -- setting a mapping to false will disable it