diff options
| author | Brahmajit Das <listout@listout.xyz> | 2026-02-13 02:16:40 +0000 |
|---|---|---|
| committer | Brahmajit Das <listout@listout.xyz> | 2026-02-13 02:16:40 +0000 |
| commit | f1b3356689003abe9edb5a46d4a091b0a41d7306 (patch) | |
| tree | 3f94c38ddf7559f088c581b3270f62f99484477e /after/ftplugin/markdown.lua | |
| parent | 7e35baacfdeeb7f834fa37841c9d3a2189a976d0 (diff) | |
| download | nvim-f1b3356689003abe9edb5a46d4a091b0a41d7306.tar.gz | |
moving vimscript configs to lua config
Signed-off-by: Brahmajit Das <listout@listout.xyz>
Diffstat (limited to 'after/ftplugin/markdown.lua')
| -rw-r--r-- | after/ftplugin/markdown.lua | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/after/ftplugin/markdown.lua b/after/ftplugin/markdown.lua new file mode 100644 index 0000000..f63e1ce --- /dev/null +++ b/after/ftplugin/markdown.lua @@ -0,0 +1,32 @@ +-- Table mode (buffer-local where appropriate) +vim.b.table_mode_corner = "|" +vim.b.table_mode_corner_corner = "|" +vim.b.table_mode_header_fillchar = "-" +vim.g.table_mode_align_char = ":" + +-- vim-markdown settings (globals expected by the plugin) +vim.g.vim_markdown_folding_disabled = 1 +vim.g.vim_markdown_conceal = 0 +vim.g.vim_markdown_anchorexpr = "'<<'.v:anchor.'>>'" + +-- Spell + wrapping +vim.opt_local.spell = true +vim.opt_local.spelllang = { "en_us" } +vim.opt_local.textwidth = 72 +vim.opt_local.colorcolumn = "72" + +-- Do not highlight concealed text +vim.api.nvim_set_hl(0, "Conceal", { + ctermbg = "NONE", + ctermfg = "NONE", + bg = "NONE", + fg = "NONE", +}) + +-- Make `gf` create new files if not exists (buffer-local mapping) +vim.keymap.set("n", "gf", function() + vim.cmd.edit(vim.fn.expand("<cfile>")) +end, { buffer = true, silent = true }) + +-- Ignore Javadoc in Java (global) +vim.g.java_ignore_javadoc = 1 |
