fix
This commit is contained in:
parent
1137ac507e
commit
a13349531d
|
@ -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",
|
||||||
|
})
|
|
@ -1,3 +1,4 @@
|
||||||
|
require("clint.autocmds")
|
||||||
require("clint.keybindings")
|
require("clint.keybindings")
|
||||||
require("clint.settings")
|
require("clint.settings")
|
||||||
require("clint.colorscheme")
|
require("clint.colorscheme")
|
||||||
|
|
|
@ -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>h', ':Telescope neoclip<CR>', default_ops)
|
||||||
keymap('n', '<Leader>b', ':Telescope buffers<CR>', default_ops)
|
keymap('n', '<Leader>b', ':Telescope buffers<CR>', default_ops)
|
||||||
keymap('n', '<Leader>c', ':Telescope colorscheme<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
|
-- Shift up and down
|
||||||
keymap("v", "J", ":m '>+1<CR>gv=gv", default_ops)
|
keymap("v", "J", ":m '>+1<CR>gv=gv", default_ops)
|
||||||
|
|
|
@ -144,6 +144,13 @@ return {
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
{
|
||||||
|
"iamcco/markdown-preview.nvim",
|
||||||
|
build = "cd app && npm install",
|
||||||
|
enabled = true,
|
||||||
|
-- ft = "markdown",
|
||||||
|
},
|
||||||
|
|
||||||
--------------------
|
--------------------
|
||||||
-- Aesthetics
|
-- Aesthetics
|
||||||
--------------------
|
--------------------
|
||||||
|
|
|
@ -0,0 +1 @@
|
||||||
|
aaaaaaaa
|
Loading…
Reference in New Issue