diff options
author | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-09-02 00:02:58 -0400 |
---|---|---|
committer | Jackson Taylor <jtaylor@classicalconversations.com> | 2023-09-02 00:06:56 -0400 |
commit | ae6b00ed784c7509220cec37e3603d795bc6ddf1 (patch) | |
tree | 73c5df2c057b0bfd5b275ef8b46a928a6b6cbd20 | |
parent | 8ccff6792ce85e3c8518997d9bb70ed63e0ae714 (diff) |
Add calendar plugin and keymappings
SPC-v-c opens a calendar so you can easily open a vimwiki diary entry
for the selected day.
There's also a way to search through calendar entries, so I might add
something for that.
-rw-r--r-- | after/plugin/which-key.lua | 6 | ||||
-rw-r--r-- | lua/jacksontaylorxyz/packer.lua | 13 |
2 files changed, 13 insertions, 6 deletions
diff --git a/after/plugin/which-key.lua b/after/plugin/which-key.lua index 808e50e..e6a97e2 100644 --- a/after/plugin/which-key.lua +++ b/after/plugin/which-key.lua @@ -123,6 +123,12 @@ function whichkey_setup() s = {"<cmd>split<CR>", "Create horizontal split"}, v = {"<cmd>vsplit<CR>", "Create vertical split"}, }, + + v = { + name = "Vimwiki", + i = {"<cmd>VimwikiIndex", "Open Vimwiki index file"}, + c = {"<cmd>Calendar", "Open calendar"}, + } } whichkey.setup(conf) diff --git a/lua/jacksontaylorxyz/packer.lua b/lua/jacksontaylorxyz/packer.lua index 5c9ffc5..3bd9117 100644 --- a/lua/jacksontaylorxyz/packer.lua +++ b/lua/jacksontaylorxyz/packer.lua @@ -32,6 +32,7 @@ return require('packer').startup(function(use) end } use "junegunn/goyo.vim" -- "Zen" mode + use "mattn/calendar-vim" -- Calendar -- Anything to do with git use 'tpope/vim-fugitive' -- Git plugin @@ -42,7 +43,7 @@ return require('packer').startup(function(use) use { 'vimwiki/vimwiki', -- Diary and wiki suite config = function() - -- This also doesn't seem to take effect until I run PackerCompile + -- Changes to this don't seem to take effect until I run PackerCompile vim.g.vimwiki_list = { { path = '~/vimwiki/personal/', @@ -82,7 +83,6 @@ return require('packer').startup(function(use) -- Language supports use 'SuneelFreimuth/vim-gemtext' -- Syntax support for gemini markdown - use 'buoto/gotests-vim' -- Better Golang Testing use('nvim-treesitter/nvim-treesitter', {run = ':TSUpdate'}) -- Even better syntax highlighting use { -- This highlights things like curly braces in different colors so the matching one is seen easier 'mrjones2014/nvim-ts-rainbow', @@ -90,7 +90,7 @@ return require('packer').startup(function(use) require('nvim-treesitter.configs').setup({ rainbow = { enable = true, - -- disable = { "jsx", "cpp" }, list of languages you want to disable the plugin for + -- disable = { "jsx", "cpp" }, -- list of languages you want to disable the plugin for extended_mode = true, -- Also highlight non-bracket delimiters like html tags, boolean or table: lang -> boolean max_file_lines = nil, -- Do not enable for files with more than n lines, int -- colors = {}, -- table of hex strings @@ -105,12 +105,12 @@ return require('packer').startup(function(use) requires = { -- LSP Support {'neovim/nvim-lspconfig'}, -- Required - {'williamboman/mason.nvim'}, -- Optional -- Package manager for LSPs + {'williamboman/mason.nvim'}, -- Optional -- Package manager for LSPs, formatters and linters {'williamboman/mason-lspconfig.nvim'}, -- Optional -- Manages the connection between what's installed with mason and the lsp config -- Autocompletion {'hrsh7th/nvim-cmp'}, -- Required -- Completion engine, gets what to complete from different sources (LSP for one) - {'hrsh7th/cmp-nvim-lsp'}, -- Required -- Converts + {'hrsh7th/cmp-nvim-lsp'}, -- Required {'hrsh7th/cmp-buffer'}, -- Optional {'hrsh7th/cmp-path'}, -- Optional {'saadparwaiz1/cmp_luasnip'}, -- Optional @@ -121,6 +121,7 @@ return require('packer').startup(function(use) {'rafamadriz/friendly-snippets'}, -- Optional -- The actual snippets } } - use {'fatih/vim-go', run = ':GoUpdateBinaries' } -- Nice Golang plugin + use {'fatih/vim-go', run = ':GoUpdateBinaries' } -- Nice Golang plugin + use 'buoto/gotests-vim' -- Better Golang Testing end) |