feat: add loading options for WezTerm types support

This commit is contained in:
2024-10-11 06:54:36 -04:00
parent 8b41d2436f
commit a8849c6a95
3 changed files with 27 additions and 34 deletions
+14 -30
View File
@@ -8,9 +8,7 @@ local data = require("data")
return { return {
{ -- Mason-lspconfig { -- Mason-lspconfig
"williamboman/mason-lspconfig.nvim", "williamboman/mason-lspconfig.nvim",
opts = { opts = data.types.mason_lsp_config.opts,
automatic_installation = true,
},
}, },
{ -- luasnip { -- luasnip
import = "lazyvim.plugins.extras.coding.luasnip", import = "lazyvim.plugins.extras.coding.luasnip",
@@ -28,23 +26,7 @@ return {
}, },
{ -- Yanky { -- Yanky
"gbprod/yanky.nvim", "gbprod/yanky.nvim",
opts = { opts = data.types.yanky,
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,
},
},
}, },
{ -- VSCode { -- VSCode
import = "lazyvim.plugins.extras.vscode", import = "lazyvim.plugins.extras.vscode",
@@ -52,6 +34,16 @@ return {
{ -- Neogen { -- Neogen
import = "lazyvim.plugins.extras.coding.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 { -- G-code
"wilriker/gcode.vim", "wilriker/gcode.vim",
}, },
@@ -73,19 +65,11 @@ return {
opts = data.types.substitute, opts = data.types.substitute,
keys = data.keys.substitute, keys = data.keys.substitute,
}, },
{ -- Markdown Preview
"iamcco/markdown-preview.nvim",
build = "cd app && yarn install",
},
{ -- Comment { -- Comment
"numToStr/Comment.nvim", "numToStr/Comment.nvim",
opts = { opts = data.types.comment,
opleader = {
line = "gC",
}, },
}, { -- Fast Action
},
{
"Chaitanyabsprip/fastaction.nvim", "Chaitanyabsprip/fastaction.nvim",
opts = {}, opts = {},
}, },
+6 -4
View File
@@ -62,10 +62,11 @@ return {
event = "BufReadPre", event = "BufReadPre",
opts = {}, opts = {},
}, },
-- { -- DeadColumn { -- DeadColumn
-- "Bekaboo/deadcolumn.nvim", "Bekaboo/deadcolumn.nvim",
-- event = "BufEnter", event = "BufEnter",
-- }, cond = data.func.check_global_var("dead_column", true, true),
},
{ -- Precognition { -- Precognition
"tris203/precognition.nvim", "tris203/precognition.nvim",
lazy = true, lazy = true,
@@ -87,6 +88,7 @@ return {
{ -- Smart Scrolloff { -- Smart Scrolloff
"tonymajestro/smart-scrolloff.nvim", "tonymajestro/smart-scrolloff.nvim",
event = "VeryLazy", event = "VeryLazy",
cond = data.func.check_global_var("smart_scrolloff", true, true),
opts = data.types.smartscrolloff, opts = data.types.smartscrolloff,
}, },
{ -- Recorder { -- Recorder
+7
View File
@@ -69,4 +69,11 @@ return {
} }
end, end,
}, },
{ -- Markdown Preview
"iamcco/markdown-preview.nvim",
build = "cd app && yarn install",
},
{ -- WezTerm Types
"justinsgithub/wezterm-types",
},
} }