Created
March 30, 2024 21:24
-
-
Save maikelthedev/9eb5d3f3aa689f4b6c33a18c99f4b02f to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
---@type ChadrcConfig | |
local M = {} | |
M.ui = { theme = 'ayu_dark' } | |
M.plugins = "custom.plugins" | |
--- Additional Key Mapping | |
local map = vim.keymap.set | |
map("n", "<leader>gg", ":LazyGit <cr>", { desc = "Launch LazyGit"}) | |
map("n", "<leader><F12>", ":Neorg index <cr>", { desc = "Neorg Index"}) | |
map("n", "<leader><F11>", ":Neorg return <cr>", { desc = "Close all Neorg buffers"}) | |
vim.opt.relativenumber = true | |
vim.opt.swapfile = false | |
vim.api.nvim_create_autocmd({"BufEnter", "BufWinEnter"}, { | |
pattern = {"*.norg"}, | |
command = "set conceallevel=2" | |
}) | |
return M |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
local plugins = { | |
{ | |
"nvim-treesitter/nvim-treesitter", | |
opts = { | |
ensure_installed = { | |
-- defaults | |
"vim", | |
"lua", | |
-- web dev | |
"html", | |
"css", | |
"javascript", | |
"typescript", | |
"tsx", | |
"json", | |
-- "vue", "svelte", | |
-- low level | |
"c", | |
"zig", | |
-- maikel added languages | |
"elixir", | |
"nim", | |
"nix", | |
"comment", | |
"terraform", | |
"norg", | |
}, | |
}, | |
}, | |
{ | |
"kdheepak/lazygit.nvim", | |
cmd = { | |
"LazyGit", | |
"LazyGitConfig", | |
"LazyGitCurrentFile", | |
"LazyGitFilter", | |
"LazyGitFilterCurrentFile", | |
}, | |
-- optional for floating window border decoration | |
dependencies = { | |
"nvim-lua/plenary.nvim", | |
}, | |
}, | |
{ | |
"andythigpen/nvim-coverage", | |
enabled = true, | |
lazy = false, | |
dependencies = { | |
"nvim-lua/plenary.nvim", | |
}, | |
opts = { | |
commands = true, | |
} | |
}, | |
{ | |
"folke/trouble.nvim", | |
enabled = true, | |
lazy = false, | |
-- opts will be merged with the parent spec | |
opts = { use_diagnostic_signs = true }, | |
}, | |
{ | |
"folke/todo-comments.nvim", | |
enabled = true, | |
lazy = false, | |
config = function() | |
require("todo-comments").setup {} | |
end, | |
}, | |
{ | |
"echasnovski/mini.nvim", | |
event = "VeryLazy", | |
config = function() | |
require("mini.animate").setup { | |
scroll = { | |
enable = false, | |
}, | |
} | |
end, | |
}, | |
{ | |
"vhyrro/luarocks.nvim", | |
priority = 1000, | |
config = true, | |
}, | |
{ | |
"nvim-neorg/neorg", | |
build = ":Neorg sync-parsers", | |
lazy = false, -- specify lazy = false because some lazy.nvim distributions set lazy = true by default | |
-- tag = "*", | |
version = "*", | |
dependencies = { "nvim-lua/plenary.nvim", "vhyrro/luarocks.nvim"}, | |
config = function() | |
require("neorg").setup { | |
load = { | |
["core.defaults"] = {}, -- Loads default behaviour | |
["core.concealer"] = { | |
config = { | |
icons = { | |
code_block = { | |
content_only = true, | |
conceal = true, | |
}, | |
}, | |
}, | |
}, -- Adds pretty icons to your documents | |
["core.export"] = {}, | |
["core.dirman"] = { -- Manages Neorg workspaces | |
config = { | |
default_workspace = "notes", | |
workspaces = { | |
notes = "~/notes", | |
}, | |
}, | |
}, | |
}, | |
} | |
end, | |
}, | |
{ | |
"pocco81/auto-save.nvim", | |
enabled = true, | |
lazy = false, | |
} | |
} | |
return plugins | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment