AutoYADM commit: 2025-01-31 16:00:03
This commit is contained in:
parent
7c3b440623
commit
d3b5a7badd
4 changed files with 40 additions and 2 deletions
15
.config/nvim/after/ftplugin/markdown.lua
Normal file
15
.config/nvim/after/ftplugin/markdown.lua
Normal file
|
@ -0,0 +1,15 @@
|
||||||
|
vim.api.nvim_create_autocmd({ "InsertLeave", "TextChanged" }, {
|
||||||
|
buffer = 0,
|
||||||
|
command = "silent! write",
|
||||||
|
})
|
||||||
|
-- vim.keymap.set("i", "<Cr>", function()
|
||||||
|
-- local md_utils = require("md-utils")
|
||||||
|
-- local isList = md_utils.isCursorInList()
|
||||||
|
-- if isList then
|
||||||
|
-- vim.api.nvim_command("MDListItemBelow")
|
||||||
|
-- else
|
||||||
|
-- vim.api.nvim_feedkeys(vim.api.nvim_replace_termcodes("<CR>", true, true, true), "n", true)
|
||||||
|
-- end
|
||||||
|
-- end, { desc = "Continue List", silent = true, remap = true })
|
||||||
|
vim.opt_local.wrap = true
|
||||||
|
vim.opt_local.spell = true
|
23
.config/nvim/lua/plugins/bullets.lua
Normal file
23
.config/nvim/lua/plugins/bullets.lua
Normal file
|
@ -0,0 +1,23 @@
|
||||||
|
return {
|
||||||
|
"bullets-vim/bullets.vim",
|
||||||
|
keys = {
|
||||||
|
{
|
||||||
|
"<CR>",
|
||||||
|
"<Plug>(bullets-newline)",
|
||||||
|
mode = "i",
|
||||||
|
ft = "markdown",
|
||||||
|
},
|
||||||
|
{
|
||||||
|
"<S-CR>",
|
||||||
|
"<CR>",
|
||||||
|
mode = "i",
|
||||||
|
ft = "markdown",
|
||||||
|
remap = false,
|
||||||
|
},
|
||||||
|
},
|
||||||
|
init = function()
|
||||||
|
vim.g.bullets_enabled_file_types = { "markdown" }
|
||||||
|
vim.g.bullets_enable_in_empty_buffers = 0
|
||||||
|
vim.g.bullets_set_mappings = 0
|
||||||
|
end,
|
||||||
|
}
|
|
@ -22,7 +22,7 @@ return {
|
||||||
end,
|
end,
|
||||||
},
|
},
|
||||||
prettier = {
|
prettier = {
|
||||||
prepend_args = { "--prose-wrap", "always" },
|
prepend_args = { "--prose-wrap", "preserve" },
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
formatters_by_ft = {
|
formatters_by_ft = {
|
||||||
|
|
|
@ -7,7 +7,7 @@ local icons = {
|
||||||
return {
|
return {
|
||||||
"MeanderingProgrammer/render-markdown.nvim",
|
"MeanderingProgrammer/render-markdown.nvim",
|
||||||
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.icons" },
|
dependencies = { "nvim-treesitter/nvim-treesitter", "echasnovski/mini.icons" },
|
||||||
enabled = true,
|
enabled = false,
|
||||||
opts = {
|
opts = {
|
||||||
indent = {
|
indent = {
|
||||||
enabled = false,
|
enabled = false,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue