diff --git a/lua/plugins/coding.lua b/lua/plugins/coding.lua index eef10ec..043c3b3 100644 --- a/lua/plugins/coding.lua +++ b/lua/plugins/coding.lua @@ -8,9 +8,7 @@ local data = require("data") return { { -- Mason-lspconfig "williamboman/mason-lspconfig.nvim", - opts = { - automatic_installation = true, - }, + opts = data.types.mason_lsp_config.opts, }, { -- luasnip import = "lazyvim.plugins.extras.coding.luasnip", @@ -28,23 +26,7 @@ return { }, { -- Yanky "gbprod/yanky.nvim", - opts = { - system_clipboard = { - sync_with_ring = true, - clipboard_register = '"', - }, - highlight = { - on_put = true, - on_yank = true, - timer = 500, - }, - preserve_cursor_position = { - enabled = true, - }, - textobj = { - enabled = true, - }, - }, + opts = data.types.yanky, }, { -- VSCode import = "lazyvim.plugins.extras.vscode", @@ -52,6 +34,16 @@ return { { -- Neogen import = "lazyvim.plugins.extras.coding.neogen", }, + { + "folke/lazydev.nvim", + opts = { + library = { + -- Load the wezterm types when the `wezterm` module is required + -- Needs `justinsgithub/wezterm-types` to be installed + { path = "wezterm-types", mods = { "wezterm" } }, + }, + }, + }, { -- G-code "wilriker/gcode.vim", }, @@ -73,19 +65,11 @@ return { opts = data.types.substitute, keys = data.keys.substitute, }, - { -- Markdown Preview - "iamcco/markdown-preview.nvim", - build = "cd app && yarn install", - }, { -- Comment "numToStr/Comment.nvim", - opts = { - opleader = { - line = "gC", - }, - }, + opts = data.types.comment, }, - { + { -- Fast Action "Chaitanyabsprip/fastaction.nvim", opts = {}, }, diff --git a/lua/plugins/editor.lua b/lua/plugins/editor.lua index 7fad713..69413d6 100644 --- a/lua/plugins/editor.lua +++ b/lua/plugins/editor.lua @@ -62,10 +62,11 @@ return { event = "BufReadPre", opts = {}, }, - -- { -- DeadColumn - -- "Bekaboo/deadcolumn.nvim", - -- event = "BufEnter", - -- }, + { -- DeadColumn + "Bekaboo/deadcolumn.nvim", + event = "BufEnter", + cond = data.func.check_global_var("dead_column", true, true), + }, { -- Precognition "tris203/precognition.nvim", lazy = true, @@ -87,6 +88,7 @@ return { { -- Smart Scrolloff "tonymajestro/smart-scrolloff.nvim", event = "VeryLazy", + cond = data.func.check_global_var("smart_scrolloff", true, true), opts = data.types.smartscrolloff, }, { -- Recorder diff --git a/lua/plugins/languages.lua b/lua/plugins/languages.lua index 36e1a8b..fe8c0ee 100644 --- a/lua/plugins/languages.lua +++ b/lua/plugins/languages.lua @@ -69,4 +69,11 @@ return { } end, }, + { -- Markdown Preview + "iamcco/markdown-preview.nvim", + build = "cd app && yarn install", + }, + { -- WezTerm Types + "justinsgithub/wezterm-types", + }, }