diff --git a/init.lua b/init.lua index 2edcff1..befc7bd 100644 --- a/init.lua +++ b/init.lua @@ -7,7 +7,7 @@ vim.cmd "source ~/.config/nvim/suda.vim" -- local time = tonumber(os.date "%H") vim.filetype.add { - pattern = {[".*/hypr/.*%.conf"] = "hyprlang", [".*/uwsm/env.*"] = "zsh"} + pattern = { [".*/hypr/.*%.conf"] = "hyprlang", [".*/uwsm/env.*"] = "zsh" }, } vim.cmd [[colorscheme catppuccin-macchiato]] diff --git a/lua/config/lspconfig.lua b/lua/config/lspconfig.lua index 704145b..7ff98d4 100644 --- a/lua/config/lspconfig.lua +++ b/lua/config/lspconfig.lua @@ -49,5 +49,3 @@ vim.lsp.config("rust_analyzer", { }, }, }) - - diff --git a/lua/config/render-markdown.lua b/lua/config/render-markdown.lua index 9b36656..3eff280 100644 --- a/lua/config/render-markdown.lua +++ b/lua/config/render-markdown.lua @@ -1,55 +1,55 @@ local opts = {} opts = { - file_types = { "markdown" }, - completions = { - lsp = { - enabled = true, + file_types = { "markdown" }, + completions = { + lsp = { + enabled = true, + }, }, - }, - render_modes = true, + render_modes = true, - anti_conceal = { - enabled = true, - above = 1, - below = 1, - }, + anti_conceal = { + enabled = true, + above = 1, + below = 1, + }, - code = { - enabled = true, - render_modes = false, - sign = true, - conceal_delimiters = true, - language = true, - position = "left", - language_icon = true, - language_name = true, - language_info = true, - language_pad = 0, - width = "full", - left_margin = 0, - left_pad = 2, - right_pad = 0, - min_width = 40, - border = "thick", - language_border = "█", - language_left = "", - language_right = "", - above = "▄", - below = "▀", - inline = true, - inline_left = "", - inline_right = "", - inline_pad = 0, - priority = 140, - highlight = "RenderMarkdownCode", - highlight_info = "RenderMarkdownCodeInfo", - highlight_language = nil, - highlight_border = "RenderMarkdownCodeBorder", - highlight_fallback = "RenderMarkdownCodeFallback", - highlight_inline = "RenderMarkdownCodeInline", - style = "full", - }, + code = { + enabled = true, + render_modes = false, + sign = true, + conceal_delimiters = true, + language = true, + position = "left", + language_icon = true, + language_name = true, + language_info = true, + language_pad = 0, + width = "full", + left_margin = 0, + left_pad = 2, + right_pad = 0, + min_width = 40, + border = "thick", + language_border = "█", + language_left = "", + language_right = "", + above = "▄", + below = "▀", + inline = true, + inline_left = "", + inline_right = "", + inline_pad = 0, + priority = 140, + highlight = "RenderMarkdownCode", + highlight_info = "RenderMarkdownCodeInfo", + highlight_language = nil, + highlight_border = "RenderMarkdownCodeBorder", + highlight_fallback = "RenderMarkdownCodeFallback", + highlight_inline = "RenderMarkdownCodeInline", + style = "full", + }, } return opts diff --git a/lua/config/telescope.lua b/lua/config/telescope.lua index df406b6..3a61317 100644 --- a/lua/config/telescope.lua +++ b/lua/config/telescope.lua @@ -1,14 +1,14 @@ if not vim.F then - vim.F = {} + vim.F = {} end if not vim.F.if_nil and not vim.nonnil then - vim.F.if_nil = function(value, default) - if value == nil then - return default + vim.F.if_nil = function(value, default) + if value == nil then + return default + end + return value end - return value - end end require("telescope").setup {} diff --git a/lua/config/undotree.lua b/lua/config/undotree.lua index 55cb36a..2e51be6 100644 --- a/lua/config/undotree.lua +++ b/lua/config/undotree.lua @@ -22,4 +22,3 @@ require("undotree").setup { ["quit"] = "q", }, } - diff --git a/lua/options.lua b/lua/options.lua index e23890a..c82168c 100644 --- a/lua/options.lua +++ b/lua/options.lua @@ -1,4 +1,4 @@ -vim.opt.spelllang = { "en_us", "nl"} +vim.opt.spelllang = { "en_us", "nl" } vim.opt.spell = true vim.opt.relativenumber = true vim.opt.tabstop = 4