This commit is contained in:
cmccay 2023-05-21 00:16:19 -05:00
parent 1137ac507e
commit a13349531d
5 changed files with 27 additions and 1 deletions

View File

@ -0,0 +1,16 @@
local group = vim.api.nvim_create_augroup("clints_custom_autocmds", {})
-- vim.api.nvim_create_autocmd("BufEnter", { command = "echo 'Hello'", group = group })
-- for a moment, highlight the text that was yanked
vim.api.nvim_create_autocmd('TextYankPost', {
group = group,
pattern = '*',
callback = function() vim.highlight.on_yank { timeout = 500 } end
})
-- upon opening a markdown file, start a preview in a browser (this is annoying)
vim.api.nvim_create_autocmd('BufEnter', {
pattern = "*.md",
group = group,
command = "MarkdownPreview",
})

View File

@ -1,3 +1,4 @@
require("clint.autocmds")
require("clint.keybindings")
require("clint.settings")
require("clint.colorscheme")

View File

@ -40,7 +40,8 @@ keymap('n', '<Leader>d', ':Telescope diagnostics<CR>', default_ops)
keymap('n', '<Leader>h', ':Telescope neoclip<CR>', default_ops)
keymap('n', '<Leader>b', ':Telescope buffers<CR>', default_ops)
keymap('n', '<Leader>c', ':Telescope colorscheme<CR>', default_ops)
keymap('n', '<Leader>fb', ':Telescope file_browser hidden=true theme=dropdown<CR>', default_ops)
keymap('n', '<Leader>?', ':Telescope help_tags<CR>', default_ops)
keymap('n', '<Leader>fb', ':Telescope file_browser hidden=true grouped=true sorting_strategy=ascending<CR>', default_ops)
-- Shift up and down
keymap("v", "J", ":m '>+1<CR>gv=gv", default_ops)

View File

@ -144,6 +144,13 @@ return {
}
},
{
"iamcco/markdown-preview.nvim",
build = "cd app && npm install",
enabled = true,
-- ft = "markdown",
},
--------------------
-- Aesthetics
--------------------

View File

@ -0,0 +1 @@
aaaaaaaa