summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/custom/config/options.lua
diff options
context:
space:
mode:
Diffstat (limited to '.config/nvim/lua/custom/config/options.lua')
-rw-r--r--.config/nvim/lua/custom/config/options.lua19
1 files changed, 13 insertions, 6 deletions
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',
+ },
+})