Skip to content

Commit

Permalink
feat(neovim): update plugins
Browse files Browse the repository at this point in the history
  • Loading branch information
tetzng committed Jan 20, 2025
1 parent 1cab8f7 commit ed3155a
Show file tree
Hide file tree
Showing 10 changed files with 113 additions and 114 deletions.
10 changes: 8 additions & 2 deletions .config/nvim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,15 @@ else
require("keymaps")
require("options")
if vim.g.neovide then
-- vim.o.guifont = "UDEV Gothic 35LGNF:h14" -- text below applies for VimScript
-- vim.o.guifont = "UDEV Gothic 35LGNF:h16"
vim.g.neovide_input_ime = true
vim.g.neovide_transparency = 0.9
vim.g.neovide_transparency = 0.85
vim.g.neovide_floating_corner_radius = 0.3

vim.g.neovide_padding_top = 4
vim.g.neovide_padding_bottom = 4
vim.g.neovide_padding_right = 4
vim.g.neovide_padding_left = 4
end

-- lazy.nvim
Expand Down
32 changes: 15 additions & 17 deletions .config/nvim/lazy-lock.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@
"CopilotChat.nvim": { "branch": "main", "commit": "2ebe591cff06018e265263e71e1dbc4c5aa8281e" },
"LuaSnip": { "branch": "master", "commit": "c9b9a22904c97d0eb69ccb9bab76037838326817" },
"add-plugin.nvim": { "branch": "main", "commit": "05469f254ccac0bd1f4cd295a385f3bbe7bd6fa3" },
"alpha-nvim": { "branch": "main", "commit": "de72250e054e5e691b9736ee30db72c65d560771" },
"avante.nvim": { "branch": "main", "commit": "bcce6bd9e4c17f2c027b6e1becb78149abcaf859" },
"avante.nvim": { "branch": "main", "commit": "fdbd5ed1d8b66496f3a31501b6b9044447e1a557" },
"bufferline.nvim": { "branch": "main", "commit": "655133c3b4c3e5e05ec549b9f8cc2894ac6f51b3" },
"capture.vim": { "branch": "master", "commit": "857ee11cfe1193948d3d45dcb8d511fded8533fb" },
"catppuccin": { "branch": "main", "commit": "f67b886d65a029f12ffa298701fb8f1efd89295d" },
Expand Down Expand Up @@ -37,13 +36,11 @@
"edgy.nvim": { "branch": "main", "commit": "7e8dedc39abebe40c289b8012cc89b11c69aa7a0" },
"flash.nvim": { "branch": "main", "commit": "34c7be146a91fec3555c33fe89c7d643f6ef5cf1" },
"full_visual_line.nvim": { "branch": "master", "commit": "4cf9977388e09d876ae59ae32b303cdd3e100ae4" },
"fzf": { "branch": "master", "commit": "03760011d70f325731b7b3f8a0c3b065c1cfedfa" },
"fzf-lua": { "branch": "main", "commit": "ed8761eaa58ff77312a877a4de63d016d58dfc58" },
"fzf": { "branch": "master", "commit": "65db7352b72845b306e6bc1388a4ad02d0f57a70" },
"fzf-lua": { "branch": "main", "commit": "b6a06dac0b4a88cc9b5c0c96e175319d1a8452ed" },
"git-conflict.nvim": { "branch": "main", "commit": "a1badcd070d176172940eb55d9d59029dad1c5a6" },
"github-nvim-theme": { "branch": "main", "commit": "c106c9472154d6b2c74b74565616b877ae8ed31d" },
"gitsigns.nvim": { "branch": "main", "commit": "0797734e2bf229cc67b05e82a17e22a18f191913" },
"guard-collection": { "branch": "main", "commit": "5bfccbcebec042512a44fc1371927472254fa148" },
"guard.nvim": { "branch": "main", "commit": "8f66373525373fe3e259f3958a964f1e76ffc7ef" },
"gitsigns.nvim": { "branch": "main", "commit": "817bd848fffe82e697b4da656e3f2834cd0665c5" },
"img-clip.nvim": { "branch": "main", "commit": "5ff183655ad98b5fc50c55c66540375bbd62438c" },
"indent-blankline.nvim": { "branch": "master", "commit": "7a698a1d7ed755af9f5a88733b23ca246ce2df28" },
"iron.nvim": { "branch": "master", "commit": "916538ebf75b8ede8e0feef4f4cd88d5cc82a67e" },
Expand All @@ -52,7 +49,7 @@
"lazydev.nvim": { "branch": "main", "commit": "8620f82ee3f59ff2187647167b6b47387a13a018" },
"legendary.nvim": { "branch": "master", "commit": "180dd9e59ab597a985baf912d2b2cd11181c0ca6" },
"lspkind-nvim": { "branch": "master", "commit": "d79a1c3299ad0ef94e255d045bed9fa26025dab6" },
"lspsaga.nvim": { "branch": "main", "commit": "8084e8447bef3f94863949087707e6221a4e5df7" },
"lspsaga.nvim": { "branch": "main", "commit": "13b3cdc9a53ec821b9e693ee71501cc2d6cf206c" },
"lualine.nvim": { "branch": "master", "commit": "2a5bae925481f999263d6f5ed8361baef8df4f83" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "e942edf5c85b6a2ab74059ea566cac5b3e1514a4" },
"mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
Expand All @@ -70,18 +67,18 @@
"nvim-colorizer.lua": { "branch": "master", "commit": "a065833f35a3a7cc3ef137ac88b5381da2ba302e" },
"nvim-config-local": { "branch": "main", "commit": "83bb6d9881653a5cf8b489ba8a6fe5a06049a10a" },
"nvim-hlslens": { "branch": "main", "commit": "e22f8448b571b56d6140427e27e02406bcf4e059" },
"nvim-lint": { "branch": "master", "commit": "dfa45de973c3ce7bd1b9a6d346f896a68ad07e44" },
"nvim-lspconfig": { "branch": "master", "commit": "339ccc81e08793c3af9b83882a6ebd90c9cc0d3b" },
"nvim-lint": { "branch": "master", "commit": "ec9fda13a5254783a80b37563ed5eb97b75c28b7" },
"nvim-lspconfig": { "branch": "master", "commit": "9ee2e7dac2e1c74538a0e0d79b9e2d59a8517bd6" },
"nvim-luadev": { "branch": "master", "commit": "3ba0c02c378503739f1fdb95cff3ea2aad48db3e" },
"nvim-notify": { "branch": "master", "commit": "a3020c2cf4dfc4c4f390c4a21e84e35e46cf5d17" },
"nvim-package-specification": { "branch": "main", "commit": "b89d02313a20a05b8e2aacc1b4c87d249938b005" },
"nvim-pasta": { "branch": "main", "commit": "7cc66bcf7101e40a6184b46a37eff0d5a43bde8d" },
"nvim-scrollbar": { "branch": "main", "commit": "6994eb9f73d5fdc36ee2c8717940e8c853e51a49" },
"nvim-spider": { "branch": "main", "commit": "2b38e3e95e143313d78ca098eeecda7aebfce925" },
"nvim-surround": { "branch": "main", "commit": "9f0cb495f25bff32c936062d85046fbda0c43517" },
"nvim-surround": { "branch": "main", "commit": "ae298105122c87bbe0a36b1ad20b06d417c0433e" },
"nvim-syntax-info": { "branch": "main", "commit": "6a18e2583c8e21004dbd6cc43122101ec65fcf45" },
"nvim-treesitter": { "branch": "master", "commit": "5da195ac3dfafd08d8b10756d975f0e01e1d563a" },
"nvim-treesitter-context": { "branch": "master", "commit": "d0dd7ce5a9d0be1f28086e818e52fdc5c78975df" },
"nvim-treesitter": { "branch": "master", "commit": "87b1f250980d288f37bfacae8bcafc0d843c2751" },
"nvim-treesitter-context": { "branch": "master", "commit": "bece284c5322ddf6946fa4bdc383a2bc033269d7" },
"nvim-treesitter-textobjects": { "branch": "master", "commit": "ad8f0a472148c3e0ae9851e26a722ee4e29b1595" },
"nvim-ts-autotag": { "branch": "main", "commit": "1cca23c9da708047922d3895a71032bc0449c52d" },
"nvim-ts-rainbow": { "branch": "master", "commit": "8312b513ce930e7669a1721befbe56f2e1853301" },
Expand All @@ -95,14 +92,15 @@
"plenary.nvim": { "branch": "master", "commit": "3707cdb1e43f5cea73afb6037e6494e7ce847a66" },
"popup.nvim": { "branch": "master", "commit": "b7404d35d5d3548a82149238289fa71f7f6de4ac" },
"project.nvim": { "branch": "main", "commit": "8c6bad7d22eef1b71144b401c9f74ed01526a4fb" },
"quick-scope": { "branch": "master", "commit": "4d35d3b2bc6794666353dcc241b2680bd560416f" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "5578ca6709e0e9a0c76fc7c484b9951b428cbb71" },
"quick-scope": { "branch": "master", "commit": "51ba865a7bf984fd2361fe219449df452337b10d" },
"rainbow-delimiters.nvim": { "branch": "master", "commit": "85b80abaa09cbbc039e3095b2f515b3cf8cadd11" },
"random-colorscheme.nvim": { "branch": "main", "commit": "5c82a09c5e1ed5aa945d79e001b5e531e22d10d9" },
"render-markdown.nvim": { "branch": "main", "commit": "ad055861d17afe058bd835e82292e14a64b51b1d" },
"replacer.nvim": { "branch": "master", "commit": "32e1713230844fa52f7f0598c59295de3c90dc95" },
"retrail.nvim": { "branch": "main", "commit": "10609e9ee14cf3b1e7107ea0f7b256b663890797" },
"rustaceanvim": { "branch": "master", "commit": "047f9c9d8cd2861745eb9de6c1570ee0875aa795" },
"schemastore.nvim": { "branch": "main", "commit": "a0dd8a31e30a34755e51abdb76d9c82e08b8ab38" },
"schemastore.nvim": { "branch": "main", "commit": "b62efcb71077bfeb407dcd05fb0584e422131150" },
"snacks.nvim": { "branch": "main", "commit": "f7fddf8dfb295756f86fa6c95417e2d783ae2148" },
"specs.nvim": { "branch": "main", "commit": "2743e412bbe21c9d73954c403d01e8de7377890d" },
"sqlite.lua": { "branch": "master", "commit": "b487fcc8937b683942a1f7d9662fcf50ca5acd58" },
"telekasten.nvim": { "branch": "main", "commit": "6a10a7929421d6e696e46bbc5aa5627a8cbcf61d" },
Expand All @@ -111,7 +109,7 @@
"telescope.nvim": { "branch": "0.1.x", "commit": "a0bbec21143c7bc5f8bb02e0005fa0b982edc026" },
"todo-comments.nvim": { "branch": "main", "commit": "304a8d204ee787d2544d8bc23cd38d2f929e7cc5" },
"toggleterm.nvim": { "branch": "main", "commit": "50ea089fc548917cc3cc16b46a8211833b9e3c7c" },
"tokyonight.nvim": { "branch": "main", "commit": "775f82f08a3d1fb55a37fc6d3a4ab10cd7ed8a10" },
"tokyonight.nvim": { "branch": "main", "commit": "c3ab53c3f544e4a04f2a05d43451fd9bedff51b4" },
"translate.nvim": { "branch": "main", "commit": "9f522548af06c67f9be7a3a47b1fecb4e36aedc4" },
"trouble.nvim": { "branch": "main", "commit": "50481f414bd3c1a40122c1d759d7e424d5fafe84" },
"ts-comments.nvim": { "branch": "main", "commit": "872dcfa0418f4a33b7437fb4d9f4e89f2f000d74" },
Expand Down
6 changes: 3 additions & 3 deletions .config/nvim/lua/options.lua
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@ vim.g.loaded_node_provider = 0
vim.g.loaded_perl_provider = 0
vim.g.markdown_recommended_style = 0 -- fix markdown indentation settings

vim.o.allowrevins = false -- allow CTRL-_ in Insert and Command-line mode
vim.o.ambiwidth = "single" -- what to do with Unicode chars of ambiguous width
vim.o.allowrevins = false -- allow CTRL-_ in Insert and Command-line mode
vim.o.ambiwidth = "single" -- what to do with Unicode chars of ambiguous width
vim.o.arabic = false
vim.o.arabicshape = true
vim.o.autochdir = false
Expand Down Expand Up @@ -130,7 +130,7 @@ vim.o.grepformat = "%f:%l:%c:%m" --
vim.o.grepprg = "rg --vimgrep" --
vim.o.guicursor = "n-v-c-sm:block,i-ci-ve:ver25,r-cr-o:hor20"
-- vim.o.guifont = ""
vim.o.guifont = "FiraCode Nerd Font:h11" --
-- vim.o.guifont = "FiraCode Nerd Font:h11" --
vim.o.guifontwide = ""
-- vim.o.guioptions = ""
-- vim.o.guitablabel = ""
Expand Down
106 changes: 53 additions & 53 deletions .config/nvim/lua/plugins/alpha-nvim.lua
Original file line number Diff line number Diff line change
@@ -1,58 +1,58 @@
---@class LazyPluginSpec
local M = {
"goolord/alpha-nvim",
dependencies = {
"nvim-tree/nvim-web-devicons",
},
lazy = false,
priority = 1200,
opts = function()
local dashboard = require("alpha.themes.dashboard")
local logo = [[
███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
]]
dashboard.section.header.val = vim.split(logo, "\n")
dashboard.section.buttons.val = {
dashboard.button("f", "" .. " Find file", "<cmd> Telescope find_files <cr>"),
dashboard.button("n", "" .. " New file", "<cmd> ene <BAR> startinsert <cr>"),
dashboard.button("r", "" .. " Recent files", "<cmd> Telescope oldfiles <cr>"),
dashboard.button("g", "" .. " Find text", "<cmd> Telescope live_grep <cr>"),
dashboard.button("c", "" .. " Config", "<cmd> e $HOME/dev/dotfiles/.config/nvim/init.lua <cr>"),
dashboard.button("s", "" .. " Restore Session", [[<cmd> lua require("persistence").load() <cr>]]),
dashboard.button("m", "" .. " Mason", "<cmd> Mason <cr>"),
dashboard.button("l", "󰒲 " .. " Lazy", "<cmd> Lazy <cr>"),
dashboard.button("q", "" .. " Quit", "<cmd> qa <cr>"),
}
for _, button in ipairs(dashboard.section.buttons.val) do
button.opts.hl = "AlphaButtons"
button.opts.hl_shortcut = "AlphaShortcut"
end
dashboard.section.header.opts.hl = "AlphaHeader"
dashboard.section.buttons.opts.hl = "AlphaButtons"
dashboard.section.buttons.opts.spacing = 1
dashboard.section.footer.opts.hl = "AlphaFooter"
dashboard.opts.layout[1].val = 5
return dashboard
end,
config = function(_, dashboard)
if vim.o.filetype == "lazy" then
vim.cmd.close()
vim.api.nvim_create_autocmd("User", {
pattern = "AlphaReady",
callback = function()
require("lazy").show()
end,
})
end

require("alpha").setup(dashboard.opts)
end,
-- "goolord/alpha-nvim",
-- dependencies = {
-- "nvim-tree/nvim-web-devicons",
-- },
-- lazy = false,
-- priority = 1200,
-- opts = function()
-- local dashboard = require("alpha.themes.dashboard")
-- local logo = [[
-- ███╗ ██╗███████╗ ██████╗ ██╗ ██╗██╗███╗ ███╗
-- ████╗ ██║██╔════╝██╔═══██╗██║ ██║██║████╗ ████║
-- ██╔██╗ ██║█████╗ ██║ ██║██║ ██║██║██╔████╔██║
-- ██║╚██╗██║██╔══╝ ██║ ██║╚██╗ ██╔╝██║██║╚██╔╝██║
-- ██║ ╚████║███████╗╚██████╔╝ ╚████╔╝ ██║██║ ╚═╝ ██║
-- ╚═╝ ╚═══╝╚══════╝ ╚═════╝ ╚═══╝ ╚═╝╚═╝ ╚═╝
--
-- ]]
-- dashboard.section.header.val = vim.split(logo, "\n")
-- dashboard.section.buttons.val = {
-- dashboard.button("f", " " .. " Find file", "<cmd> Telescope find_files <cr>"),
-- dashboard.button("n", " " .. " New file", "<cmd> ene <BAR> startinsert <cr>"),
-- dashboard.button("r", " " .. " Recent files", "<cmd> Telescope oldfiles <cr>"),
-- dashboard.button("g", " " .. " Find text", "<cmd> Telescope live_grep <cr>"),
-- dashboard.button("c", " " .. " Config", "<cmd> e $HOME/dev/dotfiles/.config/nvim/init.lua <cr>"),
-- dashboard.button("s", " " .. " Restore Session", [[<cmd> lua require("persistence").load() <cr>]]),
-- dashboard.button("m", " " .. " Mason", "<cmd> Mason <cr>"),
-- dashboard.button("l", "󰒲 " .. " Lazy", "<cmd> Lazy <cr>"),
-- dashboard.button("q", " " .. " Quit", "<cmd> qa <cr>"),
-- }
-- for _, button in ipairs(dashboard.section.buttons.val) do
-- button.opts.hl = "AlphaButtons"
-- button.opts.hl_shortcut = "AlphaShortcut"
-- end
-- dashboard.section.header.opts.hl = "AlphaHeader"
-- dashboard.section.buttons.opts.hl = "AlphaButtons"
-- dashboard.section.buttons.opts.spacing = 1
-- dashboard.section.footer.opts.hl = "AlphaFooter"
-- dashboard.opts.layout[1].val = 5
-- return dashboard
-- end,
-- config = function(_, dashboard)
-- if vim.o.filetype == "lazy" then
-- vim.cmd.close()
-- vim.api.nvim_create_autocmd("User", {
-- pattern = "AlphaReady",
-- callback = function()
-- require("lazy").show()
-- end,
-- })
-- end
--
-- require("alpha").setup(dashboard.opts)
-- end,
}

return M
37 changes: 0 additions & 37 deletions .config/nvim/lua/plugins/guard.lua

This file was deleted.

5 changes: 5 additions & 0 deletions .config/nvim/lua/plugins/mason-lspconfig.lua
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,11 @@ local M = {
local capabilities = require("cmp_nvim_lsp").default_capabilities()

local lspconfig = require("lspconfig")

lspconfig.fish_lsp.setup {
capabilities = capabilities,
}

require("mason-lspconfig").setup_handlers({
function(server_name)
lspconfig[server_name].setup({
Expand Down
3 changes: 3 additions & 0 deletions .config/nvim/lua/plugins/mason.lua
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,9 @@ local M = {
toggle_help = "?",
},
},
registries = {
"file:~/dev/sandbox/mason-registry",
},
},
}

Expand Down
3 changes: 3 additions & 0 deletions .config/nvim/lua/plugins/obsidian.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,9 @@ local M = {
-- Optional, if you want to automatically insert a template from your template directory like 'daily.md'
template = "Daily notes.md"
},
ui = {
enable = false,
},

note_frontmatter_func = function(note)
-- This is equivalent to the default frontmatter function.
Expand Down
21 changes: 21 additions & 0 deletions .config/nvim/lua/plugins/snacks.lua
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---@class LazyPluginSpec
local M = {
"folke/snacks.nvim",
priority = 1000,
lazy = false,

---@type snacks.Config
opts = {
bigfile = { enabled = true },
dashboard = { enabled = true },
indent = { enabled = true },
input = { enabled = true },
notifier = { enabled = true },
quickfile = { enabled = true },
scroll = { enabled = true },
statuscolumn = { enabled = true },
words = { enabled = true },
},
}

return M
4 changes: 2 additions & 2 deletions .config/nvim/lua/plugins/telescope.lua
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,8 @@
local M = {
"nvim-telescope/telescope.nvim",
branch = "0.1.x",
ft = { "alpha" },
event = "BufReadPost",
ft = { "snacks_dashboard" },
event = "VimEnter",
dependencies = {
{ "nvim-lua/plenary.nvim" },
{
Expand Down

0 comments on commit ed3155a

Please sign in to comment.