Things
This commit is contained in:
18
nix/flake.lock
generated
18
nix/flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1759106866,
|
"lastModified": 1762787259,
|
||||||
"narHash": "sha256-GjLvAl7qxGxKtop6ghasxjQ1biTT7pA+WU45byzMl/4=",
|
"narHash": "sha256-t2U/GLLXHa2+kJkwnFNRVc2fEJ/lUfyZXBE5iKzJdcs=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "619ae569293b6427d23cce4854eb4f3c33af3eec",
|
"rev": "37a3d97f2873e0f68711117c34d04b7c7ead8f4e",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -27,11 +27,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758805352,
|
"lastModified": 1762627886,
|
||||||
"narHash": "sha256-BHdc43Lkayd+72W/NXRKHzX5AZ+28F3xaUs3a88/Uew=",
|
"narHash": "sha256-/QLk1bzmbcqJt9sU43+y/3tHtXhAy0l8Ck0MoO2+evQ=",
|
||||||
"owner": "LnL7",
|
"owner": "LnL7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "c48e963a5558eb1c3827d59d21c5193622a1477c",
|
"rev": "5125a3cd414dc98bbe2c528227aa6b62ee61f733",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -42,11 +42,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1758690382,
|
"lastModified": 1762844143,
|
||||||
"narHash": "sha256-NY3kSorgqE5LMm1LqNwGne3ZLMF2/ILgLpFr1fS4X3o=",
|
"narHash": "sha256-SlybxLZ1/e4T2lb1czEtWVzDCVSTvk9WLwGhmxFmBxI=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "e643668fd71b949c53f8626614b21ff71a07379d",
|
"rev": "9da7f1cf7f8a6e2a7cb3001b048546c92a8258b4",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -79,6 +79,9 @@
|
|||||||
./user/profiles/work.nix
|
./user/profiles/work.nix
|
||||||
./common.nix
|
./common.nix
|
||||||
./user/task.nix
|
./user/task.nix
|
||||||
|
{
|
||||||
|
nixpkgs.config.allowUnfree = true;
|
||||||
|
}
|
||||||
];
|
];
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|||||||
@ -9,5 +9,6 @@
|
|||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
visidata
|
visidata
|
||||||
|
claude-code
|
||||||
];
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -3,23 +3,20 @@
|
|||||||
{
|
{
|
||||||
programs.git = {
|
programs.git = {
|
||||||
enable = true;
|
enable = true;
|
||||||
|
settings = {
|
||||||
|
alias = {
|
||||||
|
st = "status";
|
||||||
|
ci = "commit";
|
||||||
|
co = "checkout";
|
||||||
|
br = "branch";
|
||||||
|
pl = "pull";
|
||||||
|
ps = "push";
|
||||||
|
sw = "switch";
|
||||||
|
mno =" merge --no-ff";
|
||||||
|
lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit";
|
||||||
|
cleanup = "!git fetch --prune && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D";
|
||||||
|
};
|
||||||
|
|
||||||
aliases = {
|
|
||||||
st = "status";
|
|
||||||
ci = "commit";
|
|
||||||
co = "checkout";
|
|
||||||
br = "branch";
|
|
||||||
pl = "pull";
|
|
||||||
ps = "push";
|
|
||||||
sw = "switch";
|
|
||||||
mno =" merge --no-ff";
|
|
||||||
lg = "log --color --graph --pretty=format:'%Cred%h%Creset -%C(yellow)%d%Creset %s %Cgreen(%cr)%C(bold blue)<%an>%Creset' --abbrev-commit";
|
|
||||||
cleanup = "!git fetch --prune && git branch -vv | grep ': gone]' | awk '{print $1}' | xargs git branch -D";
|
|
||||||
};
|
|
||||||
|
|
||||||
difftastic.enable = true;
|
|
||||||
|
|
||||||
extraConfig = {
|
|
||||||
column.ui = "auto";
|
column.ui = "auto";
|
||||||
branch.sort = "-committerdate";
|
branch.sort = "-committerdate";
|
||||||
tag.sort = "version:refname";
|
tag.sort = "version:refname";
|
||||||
@ -62,6 +59,11 @@
|
|||||||
];
|
];
|
||||||
};
|
};
|
||||||
|
|
||||||
|
programs.difftastic = {
|
||||||
|
enable = true;
|
||||||
|
git.enable = true;
|
||||||
|
};
|
||||||
|
|
||||||
programs.lazygit = {
|
programs.lazygit = {
|
||||||
enable = true;
|
enable = true;
|
||||||
settings = {
|
settings = {
|
||||||
|
|||||||
@ -6,15 +6,15 @@
|
|||||||
|
|
||||||
home.stateVersion = "23.11"; # Please read the comment before changing.
|
home.stateVersion = "23.11"; # Please read the comment before changing.
|
||||||
|
|
||||||
programs.git = {
|
programs.git.settings.user = {
|
||||||
userName = "Martin Pander";
|
name = "Martin Pander";
|
||||||
userEmail = "martin.pander@knowtion.de";
|
email = "martin.pander@knowtion.de";
|
||||||
};
|
};
|
||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
yaml-language-server
|
yaml-language-server
|
||||||
marksman
|
marksman
|
||||||
dockerfile-language-server-nodejs
|
dockerfile-language-server
|
||||||
];
|
];
|
||||||
|
|
||||||
programs.zsh.profileExtra = ''
|
programs.zsh.profileExtra = ''
|
||||||
|
|||||||
@ -89,7 +89,7 @@
|
|||||||
|
|
||||||
home.packages = with pkgs; [
|
home.packages = with pkgs; [
|
||||||
fd
|
fd
|
||||||
du-dust
|
dust
|
||||||
glow
|
glow
|
||||||
ripgrep-all
|
ripgrep-all
|
||||||
viddy
|
viddy
|
||||||
|
|||||||
@ -28,8 +28,8 @@
|
|||||||
bind C-s display-popup -E "zsh ~/bin/tmuxp_selector.sh"
|
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-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-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-n display-popup -E -xC -yC -w 95% -h 95% -d "/mnt/c/Users/marti/Documents/notes/Work/" "vim 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-p display-popup -E -xC -yC -w 95% -h 95% -d "/mnt/c/Users/marti/Documents/notes/Work/development/" "vim mbpr.md"
|
||||||
|
|
||||||
#######################################
|
#######################################
|
||||||
# status line
|
# status line
|
||||||
|
|||||||
@ -1,5 +1,4 @@
|
|||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
||||||
local lspconfig = require("lspconfig")
|
|
||||||
|
|
||||||
vim.api.nvim_create_augroup('FileTypeConfigs', { clear = true })
|
vim.api.nvim_create_augroup('FileTypeConfigs', { clear = true })
|
||||||
|
|
||||||
@ -22,26 +21,37 @@ vim.api.nvim_create_autocmd('FileType', {
|
|||||||
-- require('dap-python').setup()
|
-- require('dap-python').setup()
|
||||||
-- require('dap-go').setup()
|
-- require('dap-go').setup()
|
||||||
|
|
||||||
lspconfig.ruff.setup({ capabilities = capabilities })
|
vim.lsp.enable('ruff')
|
||||||
lspconfig.gopls.setup({ capabilities = capabilities })
|
vim.lsp.enable('gopls')
|
||||||
lspconfig.marksman.setup({ capabilities = capabilities })
|
vim.lsp.enable('marksman')
|
||||||
lspconfig.rust_analyzer.setup({
|
vim.lsp.enable('rust_analyzer')
|
||||||
capabilities = capabilities,
|
vim.lsp.enable('dockerls')
|
||||||
settings = {
|
vim.lsp.enable('docker_compose_language_service')
|
||||||
["rust-analyzer"] = {
|
vim.lsp.enable('clangd')
|
||||||
checkOnSave = {
|
vim.lsp.enable('sqls')
|
||||||
command = "clippy",
|
vim.lsp.enable('zls')
|
||||||
},
|
vim.lsp.enable('omnisharp')
|
||||||
},
|
vim.lsp.enable('yamlls')
|
||||||
},
|
|
||||||
})
|
-- lspconfig.gopls.setup({ capabilities = capabilities })
|
||||||
lspconfig.dockerls.setup({ capabilities = capabilities })
|
-- lspconfig.marksman.setup({ capabilities = capabilities })
|
||||||
lspconfig.docker_compose_language_service.setup({ capabilities = capabilities })
|
-- lspconfig.rust_analyzer.setup({
|
||||||
lspconfig.clangd.setup({ capabilities = capabilities })
|
-- capabilities = capabilities,
|
||||||
lspconfig.sqls.setup({ capabilities = capabilities })
|
-- settings = {
|
||||||
lspconfig.zls.setup({ capabilities = capabilities })
|
-- ["rust-analyzer"] = {
|
||||||
lspconfig.omnisharp.setup({ capabilities = capabilities })
|
-- checkOnSave = {
|
||||||
lspconfig.yamlls.setup({ capabilities = capabilities })
|
-- 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({
|
require("conform").setup({
|
||||||
go = {"gofmt"},
|
go = {"gofmt"},
|
||||||
|
|||||||
@ -138,10 +138,6 @@ cmp.setup.cmdline(':', {
|
|||||||
})
|
})
|
||||||
|
|
||||||
local capabilities = require('cmp_nvim_lsp').default_capabilities()
|
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 = {
|
capabilities.textDocument.foldingRange = {
|
||||||
dynamicRegistration = false,
|
dynamicRegistration = false,
|
||||||
@ -150,10 +146,12 @@ capabilities.textDocument.foldingRange = {
|
|||||||
|
|
||||||
local language_servers = vim.lsp.get_clients() -- or list servers manually like {'gopls', 'clangd'}
|
local language_servers = vim.lsp.get_clients() -- or list servers manually like {'gopls', 'clangd'}
|
||||||
for _, ls in ipairs(language_servers) do
|
for _, ls in ipairs(language_servers) do
|
||||||
require('lspconfig')[ls].setup({
|
if ls ~= nil then
|
||||||
capabilities = capabilities
|
vim.lsp.config(ls).setup({
|
||||||
-- you can add other fields for setting up lsp server in this table
|
capabilities = capabilities
|
||||||
|
-- you can add other fields for setting up lsp server in this table
|
||||||
})
|
})
|
||||||
|
end
|
||||||
end
|
end
|
||||||
require('ufo').setup()
|
require('ufo').setup()
|
||||||
|
|
||||||
@ -423,18 +421,11 @@ require("obsidian").setup({
|
|||||||
date_format = "%Y-%m-%d %a",
|
date_format = "%Y-%m-%d %a",
|
||||||
time_format = "%H:%M",
|
time_format = "%H:%M",
|
||||||
},
|
},
|
||||||
ui = {
|
checkbox = {
|
||||||
checkboxes = {
|
order = { " ", ">", "x", "!", "~" },
|
||||||
[" "] = { 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" }
|
|
||||||
},
|
|
||||||
},
|
},
|
||||||
disable_frontmatter = false,
|
disable_frontmatter = false,
|
||||||
note_frontmatter_func = function(note)
|
frontmatter_func = function(note)
|
||||||
-- Add the title of the note as an alias.
|
-- Add the title of the note as an alias.
|
||||||
if note.title then
|
if note.title then
|
||||||
note:add_alias(note.title)
|
note:add_alias(note.title)
|
||||||
@ -455,6 +446,7 @@ require("obsidian").setup({
|
|||||||
return path:with_suffix(".md")
|
return path:with_suffix(".md")
|
||||||
end,
|
end,
|
||||||
daily_notes = daily_notes,
|
daily_notes = daily_notes,
|
||||||
|
legacy_commands = false,
|
||||||
})
|
})
|
||||||
|
|
||||||
require('render-markdown').setup({
|
require('render-markdown').setup({
|
||||||
@ -462,4 +454,25 @@ require('render-markdown').setup({
|
|||||||
file_types = { 'markdown'},
|
file_types = { 'markdown'},
|
||||||
completions = { lsp = { enabled = true } },
|
completions = { lsp = { enabled = true } },
|
||||||
render_modes = { 'n', 'c', 't' },
|
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