Summary Files Commits Branches @commit @diff @stats
path: root / nvim / .nvim / lua / plugins / default.lua
diff options
context:
space:
mode:
Commitc9ca8a09dc3a5e421c50dc3cfa16c573a3e87135 (patch)
Author
 Syndamia <kamen@syndamia.com>
2026-11-01 22:51:04 +0200
Committer
 Syndamia <kamen@syndamia.com>
2026-11-01 22:51:18 +0200
Filesec3e06cdc9099838406b918f5b9347eee46adf88 /nvim/.nvim/lua/plugins/default.lua
.files-main.tar
.files-main.tar.gz
.files-main.zip
Parent72d71324e1063d4d7402180e846aeff3056ba177 (diff)
feat(nvim): Implement nvim config HEAD main
Latest version from https://git.syndamia.com/conf/anderson (and formerly https://gitlab.com/Syndamia/anderson). Not edited in 7 months.
1 files changed, 162 insertions, 0 deletions
-rw-r--r--nvim/.nvim/lua/plugins/default.lua162
diff --git a/nvim/.nvim/lua/plugins/default.lua b/nvim/.nvim/lua/plugins/default.lua
new file mode 100644
index 0000000..fb70f8d
--- /dev/null
+++ b/nvim/.nvim/lua/plugins/default.lua
@@ -0,0 +1,162 @@
+local _, builtin = pcall(require, 'telescope.builtin')
+return {
+ --[=[ Visuals ]=]--
+ {
+ "morhetz/gruvbox", -- Color theme
+ lazy = false,
+ priority = 1000,
+ init = function()
+ vim.o.background = "dark"
+ vim.g.gruvbox_contrast_dark = "hard"
+ vim.opt.termguicolors = false;
+ end,
+ config = function(_, opts)
+ vim.cmd("colorscheme gruvbox")
+ end,
+ },
+ {
+ "https://gitlab.com/Syndamia/gruvbox-highlight.nvim",
+ dependencies = { "morhetz/gruvbox" },
+ lazy = false,
+ priority = 1,
+ opts = {
+ text = false,
+ markup = {
+ underline = false,
+ },
+ },
+ },
+
+ --[=[ Quality of life ]=]--
+
+ --[==[
+ {
+ "preservim/nerdtree", -- Browse directories
+ dependencies = {
+ "ryanoasis/vim-devicons",
+ },
+ keys = {{ "<Tab>", ":NERDTreeToggle<CR>" }},
+ init = function()
+ vim.g.NERDTreeShowHidden = 1
+ vim.g.NERDTreeWinPos = "right"
+ vim.g.NERDTreeIgnore = { "\\.swp$", "\\~$" } -- Ignore file, ending with .swp and ~
+ end,
+ },
+ --]==]
+ {
+ "nvim-tree/nvim-web-devicons", -- NERDFont icons
+ },
+ {
+ "luukvbaal/nnn.nvim",
+ keys = {
+ { "<Tab>", ":NnnExplorer<CR>", mode = "n", },
+ },
+ config = true,
+ opts = {
+ explorer = {
+ cmd = "nnn -dHoJ",
+ width = 31;
+ side = "botright",
+ fullscreen = false,
+ },
+ },
+ },
+ {
+ "numToStr/Comment.nvim", -- Toggle comments
+ opts = {},
+ },
+ {
+ "mbbill/undotree", -- Easily interact with undo history
+ keys = {{ "<F5>", ":UndotreeToggle<CR>" }},
+ init = function()
+ vim.g.undotree_WindowLayout = 2
+ vim.g.undotree_ShortIndicators = 1 -- e.g. using 'd' instead of 'days' to save some space.
+ vim.g.undotree_SetFocusWhenToggle = 1 -- if set, let undotree window get focus after being opened, otherwise focus will stay in current window.
+ vim.g.undotree_TreeNodeShape = '*'
+ vim.g.undotree_DiffCommand = "diff"
+ end,
+ },
+ {
+ "godlygeek/tabular", -- Line up text to a given character
+ },
+ {
+ "tpope/vim-eunuch", -- UNIX commands in vim
+ },
+ {
+ "kylechui/nvim-surround", -- Surround text
+ version = "*",
+ event = "VeryLazy",
+ dependencies = {
+ "nvim-treesitter/nvim-treesitter", "nvim-treesitter/nvim-treesitter-textobjects"
+ },
+ opts = {},
+ },
+ {
+ "windwp/nvim-ts-autotag", -- Auto-add and edit HTML tags
+ },
+ {
+ "ntpeters/vim-better-whitespace", -- Highlight in red trailing whitespaces
+ },
+ {
+ "https://gitlab.com/Syndamia/dunbar",
+ },
+
+ --[=[ Development-specific ]=]--
+ {
+ "zivyangll/git-blame.vim", -- Show last commit on line
+ keys = {{ "<F8>", ":<C-u>call gitblame#echo()<CR>" }},
+ },
+ {
+ "wakatime/vim-wakatime", -- WakaTime tracking
+ lazy = false,
+ },
+ {
+ "nvim-neorg/neorg",
+ lazy = true,
+ ft = "norg",
+ version = "8.9.0", -- Last version to support versions <nvim-0.9
+ config = true,
+ opts = {
+ load = {
+ ["core.defaults"] = {},
+ ["core.concealer"] = { config = { -- Display markup as icons
+ icon_preset = "varied",
+ }},
+ ["core.export"] = {},
+ ["core.export.markdown"] = {},
+ -- ["core.presenter"] = {}, -- Requires zen mode
+ -- ["core.text-objects"] = {}, -- Requires >=nvim-0.10
+ ["core.esupports.metagen"] = {}, -- Autoplace metadata
+ },
+ },
+ },
+ { "noir-lang/noir-nvim", lazy = false },
+ {
+ "nvim-telescope/telescope.nvim",
+ config = true,
+ opts = {
+ layout_strategy = 'horizontal',
+ defaults = {
+ layout_config = {
+ prompt_position = 'top',
+ }
+ },
+ },
+ },
+ {
+ 'FahimAnayet/changes.nvim',
+ config = function()
+ require('changes').setup({
+ autocmd = true,
+ vcs_check = true,
+ vcs_system = '', -- 'git', 'hg', or '' for auto-detect
+ sign_text_utf8 = false,
+ use_icons = true,
+ linehi_diff = false,
+ })
+ require('changes').enable()
+ vim.keymap.set('n', ';', '<cmd>ChangesToggle<cr>')
+ end,
+ event = { 'BufReadPost', 'BufNewFile' },
+ },
+}