From c64e30ae5bccf0762aa69f66543e26070098c4c8 Mon Sep 17 00:00:00 2001 From: Kyren223 Date: Fri, 23 Aug 2024 20:14:38 +0300 Subject: [PATCH] feat(nvim): added support for .mdx file types --- .config/nvim/lazy-lock.json | 1 + .config/nvim/lua/custom/config/options.lua | 19 +++++++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 4c51a8a..922c87a 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -16,6 +16,7 @@ "gitsigns.nvim": { "branch": "main", "commit": "58bd9e98d8e3c5a1c98af312e85247ee1afd3ed2" }, "hardtime.nvim": { "branch": "main", "commit": "91c6be1a54fa057002e21ae209a49436bd215355" }, "harpoon": { "branch": "harpoon2", "commit": "0378a6c428a0bed6a2781d459d7943843f374bce" }, + "helpview.nvim": { "branch": "main", "commit": "55098234e989585d97d5c75d986358e58a4f72a7" }, "indent-blankline.nvim": { "branch": "master", "commit": "3fe94b8034dd5241cb882bb73847303b58857ecf" }, "lazy.nvim": { "branch": "main", "commit": "077102c5bfc578693f12377846d427f49bc50076" }, "lazydev.nvim": { "branch": "main", "commit": "491452cf1ca6f029e90ad0d0368848fac717c6d2" }, diff --git a/.config/nvim/lua/custom/config/options.lua b/.config/nvim/lua/custom/config/options.lua index 5e17ef2..6b035a4 100644 --- a/.config/nvim/lua/custom/config/options.lua +++ b/.config/nvim/lua/custom/config/options.lua @@ -1,15 +1,15 @@ -- System vim.g.have_nerd_font = true -vim.opt.mouse = 'a' -- enable mouse +vim.opt.mouse = 'a' -- enable mouse vim.opt.clipboard = 'unnamedplus' -- use system clipboard -vim.opt.undofile = true -- persist undo history by saving it to a file +vim.opt.undofile = true -- persist undo history by saving it to a file vim.opt.exrc = true -- WARNING: runs .nvim.lua in cwd, which may execute arbitrary code -- Tab vim.opt.expandtab = true -- convert tabs to spaces -vim.opt.tabstop = 4 -- number of visual spaces per TAB -vim.opt.softtabstop = 4 -- number of idfk tab when editing -vim.opt.shiftwidth = 4 -- number of spaces to insert on tab +vim.opt.tabstop = 4 -- number of visual spaces per TAB +vim.opt.softtabstop = 4 -- number of idfk tab when editing +vim.opt.shiftwidth = 4 -- number of spaces to insert on tab -- UI vim.opt.signcolumn = 'auto:9' @@ -35,7 +35,7 @@ vim.opt.wrap = false vim.opt.scrolloff = 8 vim.opt.undofile = true vim.opt.termguicolors = true -vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline +vim.opt.laststatus = 3 -- views can only be fully collapsed with the global statusline vim.opt.splitkeep = 'screen' -- for edgy.nvim vim.opt.inccommand = 'split' -- shows preview for commands like :%s/from/to @@ -48,3 +48,10 @@ vim.g.loaded_python3_provider = 0 -- LSP vim.lsp.inlay_hint.enable() vim.diagnostic.config({ virtual_text = false, update_in_insert = true }) + +-- Add support for mdx files +vim.filetype.add({ + extension = { + mdx = 'markdown', + }, +})