From 42523d0de0e985da1f85210ce2618a5146ede09b Mon Sep 17 00:00:00 2001 From: RakerZh Date: Sat, 30 Dec 2023 18:14:23 -0500 Subject: [PATCH] update to dev --- lua/core/options.lua | 5 +++-- lua/core/pack.lua | 2 +- lua/internal/pltest.lua | 21 +++++++++++++++++++++ lua/modules/editor/package.lua | 1 + lua/modules/ui/package.lua | 1 + 5 files changed, 27 insertions(+), 3 deletions(-) create mode 100644 lua/internal/pltest.lua diff --git a/lua/core/options.lua b/lua/core/options.lua index b57e713..e2cebe4 100644 --- a/lua/core/options.lua +++ b/lua/core/options.lua @@ -1,5 +1,6 @@ local opt = vim.opt local api = vim.api +local uv = vim.uv opt.hidden = true opt.magic = true @@ -62,7 +63,7 @@ opt.signcolumn = 'yes' opt.spelloptions = 'camel' opt.textwidth = 100 -opt.colorcolumn = '100' +-- opt.colorcolumn = '100' local function get_signs() local buf = vim.api.nvim_get_current_buf() @@ -91,7 +92,7 @@ end opt.stc = [[%!v:lua.show_stc()]] -if vim.loop.os_uname().sysname == 'Darwin' then +if uv.os_uname().sysname == 'Darwin' then vim.g.clipboard = { name = 'macOS-clipboard', copy = { diff --git a/lua/core/pack.lua b/lua/core/pack.lua index 21daca5..5fc8411 100644 --- a/lua/core/pack.lua +++ b/lua/core/pack.lua @@ -36,7 +36,7 @@ function pack:boot_strap() local opts = { ---@diagnostic disable-next-line: param-type-mismatch lockfile = vim.fs.joinpath(self.data_path, 'lazy-lock.json'), - dev = { path = '~/workconfig' }, + dev = { path = '~/space/nvim_plugin' }, } self:load_modules_packages() lazy.setup(self.repos, opts) diff --git a/lua/internal/pltest.lua b/lua/internal/pltest.lua new file mode 100644 index 0000000..8bbf60d --- /dev/null +++ b/lua/internal/pltest.lua @@ -0,0 +1,21 @@ +local scan = require('plenary.scandir') +local source = { + name = 'tldr', + uri = 'https://github.com/tldr-pages/tldr', + root = '', + depth = 3, + pattern = '%.md', + add_dirs = false, + ft = 'markdown', + get_ns_keyword = function(path) + return 'lang', path:match('.*/([^./]+).*') + end, +} + +local get_source_path = function(path) + return scan.scan_dir_async(path .. source.root, { + search_pattern = source.pattern, + depth = source.depth, + add_dirs = source.add_dirs, + }) +end diff --git a/lua/modules/editor/package.lua b/lua/modules/editor/package.lua index 7949cbb..82ca9c9 100644 --- a/lua/modules/editor/package.lua +++ b/lua/modules/editor/package.lua @@ -39,6 +39,7 @@ packadd({ { 'jvgrootveld/telescope-zoxide' }, { 'RakerZh/telescope-cheat.nvim', + dev = true, dependencies = { 'kkharji/sqlite.lua', }, diff --git a/lua/modules/ui/package.lua b/lua/modules/ui/package.lua index cf08a33..339ffb6 100644 --- a/lua/modules/ui/package.lua +++ b/lua/modules/ui/package.lua @@ -87,6 +87,7 @@ packadd({ packadd({ 'RakerZh/nordic.nvim', config = conf.nordic, + dev = true, }) -- packadd({