Skip to content

Commit

Permalink
update to dev
Browse files Browse the repository at this point in the history
  • Loading branch information
RakerZh committed Dec 30, 2023
1 parent 00e43e5 commit 42523d0
Show file tree
Hide file tree
Showing 5 changed files with 27 additions and 3 deletions.
5 changes: 3 additions & 2 deletions lua/core/options.lua
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
local opt = vim.opt
local api = vim.api
local uv = vim.uv

opt.hidden = true
opt.magic = true
Expand Down Expand Up @@ -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()
Expand Down Expand Up @@ -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 = {
Expand Down
2 changes: 1 addition & 1 deletion lua/core/pack.lua
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down
21 changes: 21 additions & 0 deletions lua/internal/pltest.lua
Original file line number Diff line number Diff line change
@@ -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
1 change: 1 addition & 0 deletions lua/modules/editor/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ packadd({
{ 'jvgrootveld/telescope-zoxide' },
{
'RakerZh/telescope-cheat.nvim',
dev = true,
dependencies = {
'kkharji/sqlite.lua',
},
Expand Down
1 change: 1 addition & 0 deletions lua/modules/ui/package.lua
Original file line number Diff line number Diff line change
Expand Up @@ -87,6 +87,7 @@ packadd({
packadd({
'RakerZh/nordic.nvim',
config = conf.nordic,
dev = true,
})

-- packadd({
Expand Down

0 comments on commit 42523d0

Please sign in to comment.