diff --git a/init.lua b/init.lua index 6b9f3db..a6883ef 100644 --- a/init.lua +++ b/init.lua @@ -1,4 +1,4 @@ return { - colorscheme = "kanagawa", + colorscheme = "catppuccin", } diff --git a/plugins/languages.lua b/plugins/languages.lua index ec6dfed..f310ed0 100644 --- a/plugins/languages.lua +++ b/plugins/languages.lua @@ -1,5 +1,6 @@ return { "AstroNvim/astrocommunity", { import = "astrocommunity.pack.typescript" }, + { import = "astrocommunity.pack.cs" }, { import = "astrocommunity.pack.markdown" }, } diff --git a/plugins/notes.lua b/plugins/notes.lua new file mode 100644 index 0000000..174122a --- /dev/null +++ b/plugins/notes.lua @@ -0,0 +1,33 @@ +return { + "tomasky/bookmarks.nvim", + event = "VimEnter", + config = function() + require("bookmarks").setup({ + keywords = { + ["@t"] = "󰃁 ", -- mark annotation startswith @t ,signs this icon as `Todo` + ["@w"] = " ", -- mark annotation startswith @w ,signs this icon as `Warn` + ["@f"] = "⛏ ", -- mark annotation startswith @f ,signs this icon as `Fix` + ["@n"] = "󰃃 ", -- mark annotation startswith @n ,signs this icon as `Note` + }, + on_attach = function(bufnr) + -- local bm = require "bookmarks" + -- local map = vim.keymap.set + -- map("n","mm",bm.bookmark_toggle) -- add or remove bookmark at current line + -- map("n","mi",bm.bookmark_ann) -- add or edit mark annotation at current line + -- map("n","mc",bm.bookmark_clean) -- clean all marks in local buffer + -- map("n","mn",bm.bookmark_next) -- jump to next mark in local buffer + -- map("n","mp",bm.bookmark_prev) -- jump to previous mark in local buffer + -- map("n","ml",bm.bookmark_list) -- show marked file list in quickfix window + end + }) + require('telescope').load_extension('bookmarks') + end, + keys = { + { "mm", ":lua require('bookmarks').bookmark_toggle()", desc = "Toggle bookmark"}, + { "mi", ":lua require('bookmarks').bookmark_ann()", desc = "Add/edit annotation"}, + { "mc", ":lua require('bookmarks').bookmark_clean()", desc = "Clear annotations"}, + { "mn", ":lua require('bookmarks').bookmark_next()", desc = "Next annotations"}, + { "mp", ":lua require('bookmarks').bookmark_prev()", desc = "Prev annotations"}, + { "ml", ":Telescope bookmarks list", desc = "List annotations"}, + } +} diff --git a/plugins/theme.lua b/plugins/theme.lua index 87616a1..8c69716 100644 --- a/plugins/theme.lua +++ b/plugins/theme.lua @@ -1,11 +1,10 @@ return { "AstroNvim/astrocommunity", - { import = "astrocommunity.colorscheme.nightfox", enabled = true }, { - import = "astrocommunity.colorscheme.kanagawa", - }, - { - import = "astrocommunity.colorscheme.oxocarbon", - enabled = true, - }, + "catppuccin/nvim", + name = "catppuccin", + config = function() + require("catppuccin").setup {} + end, + }, }