Compare commits
36 Commits
d522dcd5ab
...
work
| Author | SHA1 | Date | |
|---|---|---|---|
| 802c215d71 | |||
| 6eda68d8a4 | |||
| adb2595344 | |||
| cc19b77b63 | |||
| e00d798cfe | |||
| d6311e5c1a | |||
| 285d23cd18 | |||
| b313e4516f | |||
| bd20986f0d | |||
| 4cd09b24e1 | |||
| 1ef09c5115 | |||
| a95ce2e095 | |||
| 46b2c33e7b | |||
| 0406542220 | |||
| 70c37da9ef | |||
| 6a651c6a3d | |||
| 606e5bed8e | |||
| 2d93535296 | |||
| d33e403915 | |||
| e0e6cb760e | |||
| f4488f2469 | |||
| c5f98b9238 | |||
| c736ac9c64 | |||
| 9f75201e84 | |||
| 27643e0837 | |||
| 90b2f80c83 | |||
| a4d57120bf | |||
| 7de0c50a3a | |||
| 05d3d997dc | |||
| b606d2a33d | |||
| 0e3e5077f3 | |||
| f9ebfc652f | |||
| f23c3d413b | |||
| 85c6ae78fb | |||
| 6d106b954d | |||
| d2763cfa8b |
18
nix/flake.lock
generated
18
nix/flake.lock
generated
@ -7,11 +7,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1750275572,
|
||||
"narHash": "sha256-upC/GIlsIgtdtWRGd1obzdXWYQptNkfzZeyAFWgsgf0=",
|
||||
"lastModified": 1768798936,
|
||||
"narHash": "sha256-eHld4id3TeD9Sxx5vgv58BnTl1fz+ewIKspz/kEoAE8=",
|
||||
"owner": "nix-community",
|
||||
"repo": "home-manager",
|
||||
"rev": "0f355844e54e4c70906b1ef5cc35a0047d666c04",
|
||||
"rev": "2954aa29441a1a98901362e4d35515875761ad65",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -27,11 +27,11 @@
|
||||
]
|
||||
},
|
||||
"locked": {
|
||||
"lastModified": 1749873626,
|
||||
"narHash": "sha256-1Mc/D/1RwwmDKY59f4IpDBgcQttxffm+4o0m67lQ8hc=",
|
||||
"lastModified": 1768764703,
|
||||
"narHash": "sha256-5ulSDyOG1U+1sJhkJHYsUOWEsmtLl97O0NTVMvgIVyc=",
|
||||
"owner": "LnL7",
|
||||
"repo": "nix-darwin",
|
||||
"rev": "2f140d6ac8840c6089163fb43ba95220c230f22b",
|
||||
"rev": "0fc4e7ac670a0ed874abacf73c4b072a6a58064b",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
@ -42,11 +42,11 @@
|
||||
},
|
||||
"nixpkgs": {
|
||||
"locked": {
|
||||
"lastModified": 1750134718,
|
||||
"narHash": "sha256-v263g4GbxXv87hMXMCpjkIxd/viIF7p3JpJrwgKdNiI=",
|
||||
"lastModified": 1768564909,
|
||||
"narHash": "sha256-Kell/SpJYVkHWMvnhqJz/8DqQg2b6PguxVWOuadbHCc=",
|
||||
"owner": "nixos",
|
||||
"repo": "nixpkgs",
|
||||
"rev": "9e83b64f727c88a7711a2c463a7b16eedb69a84c",
|
||||
"rev": "e4bae1bd10c9c57b2cf517953ab70060a828ee6f",
|
||||
"type": "github"
|
||||
},
|
||||
"original": {
|
||||
|
||||
@ -13,7 +13,8 @@
|
||||
|
||||
outputs = { self, nix-darwin, nixpkgs, home-manager, ... }:
|
||||
let
|
||||
system = "x86_64-darwin";
|
||||
#system = "x86_64-darwin";
|
||||
system = "x86_64-linux";
|
||||
pkgs = nixpkgs.legacyPackages.${system};
|
||||
|
||||
configuration = { pkgs, ... }: {
|
||||
@ -60,6 +61,7 @@
|
||||
./user/task_home.nix
|
||||
];
|
||||
};
|
||||
|
||||
"martin" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
@ -69,6 +71,7 @@
|
||||
./user/task_home.nix
|
||||
];
|
||||
};
|
||||
|
||||
"pan" = home-manager.lib.homeManagerConfiguration {
|
||||
inherit pkgs;
|
||||
|
||||
@ -76,6 +79,9 @@
|
||||
./user/profiles/work.nix
|
||||
./common.nix
|
||||
./user/task.nix
|
||||
{
|
||||
nixpkgs.config.allowUnfree = true;
|
||||
}
|
||||
];
|
||||
};
|
||||
};
|
||||
|
||||
@ -9,5 +9,8 @@
|
||||
|
||||
home.packages = with pkgs; [
|
||||
visidata
|
||||
claude-code
|
||||
opencode
|
||||
# crush
|
||||
];
|
||||
}
|
||||
|
||||
@ -3,8 +3,8 @@
|
||||
{
|
||||
programs.git = {
|
||||
enable = true;
|
||||
|
||||
aliases = {
|
||||
settings = {
|
||||
alias = {
|
||||
st = "status";
|
||||
ci = "commit";
|
||||
co = "checkout";
|
||||
@ -17,9 +17,6 @@
|
||||
cleanup = "!git fetch --prune && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D";
|
||||
};
|
||||
|
||||
difftastic.enable = true;
|
||||
|
||||
extraConfig = {
|
||||
column.ui = "auto";
|
||||
branch.sort = "-committerdate";
|
||||
tag.sort = "version:refname";
|
||||
@ -62,6 +59,11 @@
|
||||
];
|
||||
};
|
||||
|
||||
programs.difftastic = {
|
||||
enable = true;
|
||||
git.enable = true;
|
||||
};
|
||||
|
||||
programs.lazygit = {
|
||||
enable = true;
|
||||
settings = {
|
||||
|
||||
@ -6,15 +6,15 @@
|
||||
|
||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||
|
||||
programs.git = {
|
||||
userName = "Martin Pander";
|
||||
userEmail = "martin.pander@knowtion.de";
|
||||
programs.git.settings.user = {
|
||||
name = "Martin Pander";
|
||||
email = "martin.pander@knowtion.de";
|
||||
};
|
||||
|
||||
home.packages = with pkgs; [
|
||||
yaml-language-server
|
||||
marksman
|
||||
dockerfile-language-server-nodejs
|
||||
dockerfile-language-server
|
||||
];
|
||||
|
||||
programs.zsh.profileExtra = ''
|
||||
|
||||
@ -89,13 +89,15 @@
|
||||
|
||||
home.packages = with pkgs; [
|
||||
fd
|
||||
du-dust
|
||||
dust
|
||||
glow
|
||||
ripgrep-all
|
||||
viddy
|
||||
duf
|
||||
(python3.withPackages(ps: [ ps.llm ps.llm-gemini ]))
|
||||
#nerdfonts
|
||||
# (llm.withPlugins (ps: [
|
||||
# ps.llm-gemini
|
||||
# ps.llm-claude
|
||||
# ]))
|
||||
];
|
||||
|
||||
home.sessionVariables = lib.mkMerge [ {
|
||||
|
||||
@ -8,9 +8,6 @@
|
||||
config = {
|
||||
weekstart = "monday";
|
||||
|
||||
context.today.read = "(prio:H or +next)";
|
||||
context.today.write = "prio:H +next";
|
||||
|
||||
uda.energy.type="string";
|
||||
uda.energy.label="Energy";
|
||||
uda.energy.values="h,m,l";
|
||||
@ -20,11 +17,16 @@
|
||||
urgency.uda.priority.L.coefficient = -0.5;
|
||||
urgency.user.tag.deferred.coefficient = -15.0;
|
||||
urgency.user.tag.cust.coefficient = 5.0;
|
||||
urgency.user.tag.fixed.coefficient = -100.0;
|
||||
|
||||
report.next.columns="id,start.age,entry.age,depends,priority,energy,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
report.next.labels="ID,Active,Age,Deps,P,E,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
report.next.filter="status:pending -WAITING -deferred";
|
||||
|
||||
report.time.columns="id,start.age,entry.age,depends,priority,energy,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
report.time.labels="ID,Active,Age,Deps,P,E,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
report.time.filter="status:pending -WAITING -deferred +fixed";
|
||||
|
||||
report.deferred.columns="id,start.age,entry.age,depends,priority,energy,project,tags,recur,scheduled.countdown,due.relative,until.remaining,description,urgency";
|
||||
report.deferred.context="1";
|
||||
report.deferred.description="Deferred and waiting tasks";
|
||||
@ -39,6 +41,8 @@
|
||||
report.low.labels="ID,Active,Age,Deps,P,E,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||
report.low.sort="energy+,urgency-";
|
||||
|
||||
context.today.read = "(prio:H or +next)";
|
||||
context.today.write = "prio:H +next";
|
||||
context.deferred.read = "+deferred";
|
||||
context.deferred.write = "+deferred";
|
||||
context.customer.read = "+cust";
|
||||
|
||||
@ -28,8 +28,8 @@
|
||||
bind C-s display-popup -E "zsh ~/bin/tmuxp_selector.sh"
|
||||
bind C-g display-popup -E -d "#{pane_current_path}" -xC -yC -w 95% -h 95% "lazygit"
|
||||
bind C-t display-popup -E -xC -yC -w 95% -h 95% "tasksquire"
|
||||
bind C-n display-popup -E -xC -yC -w 95% -h 95% "vim /mnt/c/Users/marti/Documents/notes/Work/quick_notes.md"
|
||||
bind C-m display-popup -E -xC -yC -w 95% -h 95% "vim /mnt/c/Users/marti/Documents/notes/Work/mbpr.md"
|
||||
bind C-n display-popup -E -xC -yC -w 95% -h 95% -d "/mnt/c/Users/marti/Documents/notes/Work/" "vim quick_notes.md"
|
||||
bind C-p display-popup -E -xC -yC -w 95% -h 95% -d "/mnt/c/Users/marti/Documents/notes/Work/development/" "vim mbpr.md"
|
||||
|
||||
#######################################
|
||||
# status line
|
||||
|
||||
@ -1,5 +1,4 @@
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
local lspconfig = require("lspconfig")
|
||||
|
||||
vim.api.nvim_create_augroup('FileTypeConfigs', { clear = true })
|
||||
|
||||
@ -22,26 +21,37 @@ vim.api.nvim_create_autocmd('FileType', {
|
||||
-- require('dap-python').setup()
|
||||
-- require('dap-go').setup()
|
||||
|
||||
lspconfig.ruff.setup({ capabilities = capabilities })
|
||||
lspconfig.gopls.setup({ capabilities = capabilities })
|
||||
lspconfig.marksman.setup({ capabilities = capabilities })
|
||||
lspconfig.rust_analyzer.setup({
|
||||
capabilities = capabilities,
|
||||
settings = {
|
||||
["rust-analyzer"] = {
|
||||
checkOnSave = {
|
||||
command = "clippy",
|
||||
},
|
||||
},
|
||||
},
|
||||
})
|
||||
lspconfig.dockerls.setup({ capabilities = capabilities })
|
||||
lspconfig.docker_compose_language_service.setup({ capabilities = capabilities })
|
||||
lspconfig.clangd.setup({ capabilities = capabilities })
|
||||
lspconfig.sqls.setup({ capabilities = capabilities })
|
||||
lspconfig.zls.setup({ capabilities = capabilities })
|
||||
lspconfig.omnisharp.setup({ capabilities = capabilities })
|
||||
lspconfig.yamlls.setup({ capabilities = capabilities })
|
||||
vim.lsp.enable('ruff')
|
||||
vim.lsp.enable('gopls')
|
||||
vim.lsp.enable('marksman')
|
||||
vim.lsp.enable('rust_analyzer')
|
||||
vim.lsp.enable('dockerls')
|
||||
vim.lsp.enable('docker_compose_language_service')
|
||||
vim.lsp.enable('clangd')
|
||||
vim.lsp.enable('sqls')
|
||||
vim.lsp.enable('zls')
|
||||
vim.lsp.enable('omnisharp')
|
||||
vim.lsp.enable('yamlls')
|
||||
|
||||
-- lspconfig.gopls.setup({ capabilities = capabilities })
|
||||
-- lspconfig.marksman.setup({ capabilities = capabilities })
|
||||
-- lspconfig.rust_analyzer.setup({
|
||||
-- capabilities = capabilities,
|
||||
-- settings = {
|
||||
-- ["rust-analyzer"] = {
|
||||
-- checkOnSave = {
|
||||
-- command = "clippy",
|
||||
-- },
|
||||
-- },
|
||||
-- },
|
||||
-- })
|
||||
-- lspconfig.dockerls.setup({ capabilities = capabilities })
|
||||
-- lspconfig.docker_compose_language_service.setup({ capabilities = capabilities })
|
||||
-- lspconfig.clangd.setup({ capabilities = capabilities })
|
||||
-- lspconfig.sqls.setup({ capabilities = capabilities })
|
||||
-- lspconfig.zls.setup({ capabilities = capabilities })
|
||||
-- lspconfig.omnisharp.setup({ capabilities = capabilities })
|
||||
-- lspconfig.yamlls.setup({ capabilities = capabilities })
|
||||
|
||||
require("conform").setup({
|
||||
go = {"gofmt"},
|
||||
|
||||
@ -138,10 +138,6 @@ cmp.setup.cmdline(':', {
|
||||
})
|
||||
|
||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||
local lspconfig = require("lspconfig")
|
||||
-- lspconfig.svelte.setup({ capabilities = capabilities })
|
||||
-- lspconfig.flow.setup({ capabilities = capabilities })
|
||||
-- lspconfig.nil_ls.setup({ capabilities = capabilities })
|
||||
|
||||
capabilities.textDocument.foldingRange = {
|
||||
dynamicRegistration = false,
|
||||
@ -150,10 +146,12 @@ capabilities.textDocument.foldingRange = {
|
||||
|
||||
local language_servers = vim.lsp.get_clients() -- or list servers manually like {'gopls', 'clangd'}
|
||||
for _, ls in ipairs(language_servers) do
|
||||
require('lspconfig')[ls].setup({
|
||||
if ls ~= nil then
|
||||
vim.lsp.config(ls).setup({
|
||||
capabilities = capabilities
|
||||
-- you can add other fields for setting up lsp server in this table
|
||||
})
|
||||
end
|
||||
end
|
||||
require('ufo').setup()
|
||||
|
||||
@ -183,27 +181,27 @@ require("telescope").setup {
|
||||
require("telescope").load_extension("ui-select")
|
||||
require("telescope").load_extension("yank_history")
|
||||
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
-- ensure_installed = { "lua", "vim", "help" },
|
||||
ensure_installed = {},
|
||||
sync_install = false,
|
||||
auto_install = false,
|
||||
|
||||
|
||||
highlight = {
|
||||
enable = true,
|
||||
|
||||
disable = function(lang, buf)
|
||||
local max_filesize = 100 * 1024 -- 100 KB
|
||||
local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
if ok and stats and stats.size > max_filesize then
|
||||
return true
|
||||
end
|
||||
end,
|
||||
|
||||
additional_vim_regex_highlighting = false,
|
||||
},
|
||||
}
|
||||
-- require'nvim-treesitter.configs'.setup {
|
||||
-- -- ensure_installed = { "lua", "vim", "help" },
|
||||
-- ensure_installed = {},
|
||||
-- sync_install = false,
|
||||
-- auto_install = false,
|
||||
--
|
||||
--
|
||||
-- highlight = {
|
||||
-- enable = true,
|
||||
--
|
||||
-- disable = function(lang, buf)
|
||||
-- local max_filesize = 100 * 1024 -- 100 KB
|
||||
-- local ok, stats = pcall(vim.loop.fs_stat, vim.api.nvim_buf_get_name(buf))
|
||||
-- if ok and stats and stats.size > max_filesize then
|
||||
-- return true
|
||||
-- end
|
||||
-- end,
|
||||
--
|
||||
-- additional_vim_regex_highlighting = false,
|
||||
-- },
|
||||
-- }
|
||||
|
||||
require('lualine').setup({
|
||||
options = {
|
||||
@ -423,18 +421,12 @@ require("obsidian").setup({
|
||||
date_format = "%Y-%m-%d %a",
|
||||
time_format = "%H:%M",
|
||||
},
|
||||
ui = {
|
||||
checkboxes = {
|
||||
[" "] = { char = "", hl_group = "ObsidianTodo" },
|
||||
[">"] = { char = "", hl_group = "ObsidianRightArrow" },
|
||||
["x"] = { char = "", hl_group = "ObsidianDone" },
|
||||
["~"] = { char = "", hl_group = "ObsidianTilde" },
|
||||
["!"] = { char = "", hl_group = "ObsidianImportant" },
|
||||
["?"] = { char = "?", hl_group = "ObsidianImportant" }
|
||||
checkbox = {
|
||||
order = { " ", ">", "x", "!", "~" },
|
||||
},
|
||||
},
|
||||
disable_frontmatter = false,
|
||||
note_frontmatter_func = function(note)
|
||||
frontmatter = {
|
||||
enabled = true,
|
||||
func = function(note)
|
||||
-- Add the title of the note as an alias.
|
||||
if note.title then
|
||||
note:add_alias(note.title)
|
||||
@ -450,11 +442,13 @@ require("obsidian").setup({
|
||||
|
||||
return out
|
||||
end,
|
||||
},
|
||||
note_path_func = function(spec)
|
||||
local path = spec.dir / spec.title
|
||||
return path:with_suffix(".md")
|
||||
end,
|
||||
daily_notes = daily_notes,
|
||||
legacy_commands = false,
|
||||
})
|
||||
|
||||
require('render-markdown').setup({
|
||||
@ -462,4 +456,25 @@ require('render-markdown').setup({
|
||||
file_types = { 'markdown'},
|
||||
completions = { lsp = { enabled = true } },
|
||||
render_modes = { 'n', 'c', 't' },
|
||||
checkbox = {
|
||||
enabled = true,
|
||||
render_modes = false,
|
||||
bullet = false,
|
||||
right_pad = 1,
|
||||
unchecked = {
|
||||
icon = ' ',
|
||||
highlight = 'RenderMarkdownUnchecked',
|
||||
scope_highlight = nil,
|
||||
},
|
||||
checked = {
|
||||
icon = ' ',
|
||||
highlight = 'RenderMarkdownChecked',
|
||||
scope_highlight = nil,
|
||||
},
|
||||
custom = {
|
||||
next = { raw = '[!]', rendered = ' ', highlight = 'RenderMarkdownNext', scope_highlight = nil },
|
||||
ongoing = { raw = '[>]', rendered = '▶ ', highlight = 'RenderMarkdownOngoing', scope_highlight = nil },
|
||||
waiting = { raw = '[~]', rendered = ' ', highlight = 'RenderMarkdownWaiting', scope_highlight = nil },
|
||||
},
|
||||
},
|
||||
})
|
||||
|
||||
Reference in New Issue
Block a user