mirror of
https://github.com/morten-olsen/astrovim.git
synced 2026-02-08 01:46:27 +01:00
update
This commit is contained in:
2
init.lua
2
init.lua
@@ -1,4 +1,4 @@
|
|||||||
return {
|
return {
|
||||||
colorscheme = "kanagawa",
|
colorscheme = "catppuccin",
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -1,5 +1,6 @@
|
|||||||
return {
|
return {
|
||||||
"AstroNvim/astrocommunity",
|
"AstroNvim/astrocommunity",
|
||||||
{ import = "astrocommunity.pack.typescript" },
|
{ import = "astrocommunity.pack.typescript" },
|
||||||
|
{ import = "astrocommunity.pack.cs" },
|
||||||
{ import = "astrocommunity.pack.markdown" },
|
{ import = "astrocommunity.pack.markdown" },
|
||||||
}
|
}
|
||||||
|
|||||||
33
plugins/notes.lua
Normal file
33
plugins/notes.lua
Normal file
@@ -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 = {
|
||||||
|
{ "<leader>mm", ":lua require('bookmarks').bookmark_toggle()<cr>", desc = "Toggle bookmark"},
|
||||||
|
{ "<leader>mi", ":lua require('bookmarks').bookmark_ann()<cr>", desc = "Add/edit annotation"},
|
||||||
|
{ "<leader>mc", ":lua require('bookmarks').bookmark_clean()<cr>", desc = "Clear annotations"},
|
||||||
|
{ "<leader>mn", ":lua require('bookmarks').bookmark_next()<cr>", desc = "Next annotations"},
|
||||||
|
{ "<leader>mp", ":lua require('bookmarks').bookmark_prev()<cr>", desc = "Prev annotations"},
|
||||||
|
{ "<leader>ml", ":Telescope bookmarks list<cr>", desc = "List annotations"},
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -1,11 +1,10 @@
|
|||||||
return {
|
return {
|
||||||
"AstroNvim/astrocommunity",
|
"AstroNvim/astrocommunity",
|
||||||
{ import = "astrocommunity.colorscheme.nightfox", enabled = true },
|
|
||||||
{
|
{
|
||||||
import = "astrocommunity.colorscheme.kanagawa",
|
"catppuccin/nvim",
|
||||||
},
|
name = "catppuccin",
|
||||||
{
|
config = function()
|
||||||
import = "astrocommunity.colorscheme.oxocarbon",
|
require("catppuccin").setup {}
|
||||||
enabled = true,
|
end,
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user