Update things
This commit is contained in:
18
nix/flake.lock
generated
18
nix/flake.lock
generated
@ -7,11 +7,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740579671,
|
"lastModified": 1745810134,
|
||||||
"narHash": "sha256-Dwt/3KknOQ4bgFG5YjqDT7oWRy27rPpDjAi2P0ok1zw=",
|
"narHash": "sha256-WfnYH/i7DFzn4SESQfWviXiNUZjohZhzODqLwKYHIPI=",
|
||||||
"owner": "nix-community",
|
"owner": "nix-community",
|
||||||
"repo": "home-manager",
|
"repo": "home-manager",
|
||||||
"rev": "53c587d263f94aaf6a281745923c76bbec62bcf3",
|
"rev": "be7cf1709b469a2a2c62169172a167d1fed3509f",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -27,11 +27,11 @@
|
|||||||
]
|
]
|
||||||
},
|
},
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740452771,
|
"lastModified": 1745816321,
|
||||||
"narHash": "sha256-/tI1vFJ7/dXJqUmI+s0EV1F0DPe6dZvT444mrLUkrlU=",
|
"narHash": "sha256-Gyh/fkCDqVNGM0BWvk+4UAS17w2UI6iwnbQQCmc1TDI=",
|
||||||
"owner": "LnL7",
|
"owner": "LnL7",
|
||||||
"repo": "nix-darwin",
|
"repo": "nix-darwin",
|
||||||
"rev": "42be12b510253d750138ec90c66decc282298b44",
|
"rev": "4515dacafb0ccd42e5395aacc49fd58a43027e01",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
@ -42,11 +42,11 @@
|
|||||||
},
|
},
|
||||||
"nixpkgs": {
|
"nixpkgs": {
|
||||||
"locked": {
|
"locked": {
|
||||||
"lastModified": 1740367490,
|
"lastModified": 1745526057,
|
||||||
"narHash": "sha256-WGaHVAjcrv+Cun7zPlI41SerRtfknGQap281+AakSAw=",
|
"narHash": "sha256-ITSpPDwvLBZBnPRS2bUcHY3gZSwis/uTe255QgMtTLA=",
|
||||||
"owner": "nixos",
|
"owner": "nixos",
|
||||||
"repo": "nixpkgs",
|
"repo": "nixpkgs",
|
||||||
"rev": "0196c0175e9191c474c26ab5548db27ef5d34b05",
|
"rev": "f771eb401a46846c1aebd20552521b233dd7e18b",
|
||||||
"type": "github"
|
"type": "github"
|
||||||
},
|
},
|
||||||
"original": {
|
"original": {
|
||||||
|
|||||||
@ -8,4 +8,8 @@
|
|||||||
};
|
};
|
||||||
|
|
||||||
programs.ripgrep.enable = true;
|
programs.ripgrep.enable = true;
|
||||||
|
|
||||||
|
home.packages = with pkgs; [
|
||||||
|
harlequin
|
||||||
|
];
|
||||||
}
|
}
|
||||||
|
|||||||
@ -54,8 +54,6 @@
|
|||||||
merge.conflictstyle = "zdiff3";
|
merge.conflictstyle = "zdiff3";
|
||||||
core.editor = "nvim";
|
core.editor = "nvim";
|
||||||
init.defaultBranch = "main";
|
init.defaultBranch = "main";
|
||||||
merge.conflicstyle = "zdiff3";
|
|
||||||
fetch.prune = true;
|
|
||||||
};
|
};
|
||||||
|
|
||||||
ignores = [
|
ignores = [
|
||||||
|
|||||||
@ -13,6 +13,7 @@
|
|||||||
vim-commentary
|
vim-commentary
|
||||||
vim-repeat
|
vim-repeat
|
||||||
vim-surround
|
vim-surround
|
||||||
|
nvim-tree-lua
|
||||||
targets-vim
|
targets-vim
|
||||||
delimitMate
|
delimitMate
|
||||||
# vim-startify
|
# vim-startify
|
||||||
@ -42,6 +43,7 @@
|
|||||||
img-clip-nvim
|
img-clip-nvim
|
||||||
markdown-preview-nvim
|
markdown-preview-nvim
|
||||||
vim-markdown
|
vim-markdown
|
||||||
|
bullets-vim
|
||||||
(nvim-treesitter.withPlugins (p: [ p.awk p.bash p.c p.c_sharp p.cpp p.css p.diff p.dockerfile p.doxygen p.git_config p.gitcommit p.go p.gomod p.gosum p.gotmpl p.helm p.haskell p.html p.http p.java p.javascript p.json p.latex p.lua p.markdown p.markdown_inline p.matlab p.nix p.printf p.python p.regex p.rust p.sql p.strace p.supercollider p.svelte p.swift p.terraform p.tmux p.toml p.typescript p.vim p.xml p.yaml p.zig ]))
|
(nvim-treesitter.withPlugins (p: [ p.awk p.bash p.c p.c_sharp p.cpp p.css p.diff p.dockerfile p.doxygen p.git_config p.gitcommit p.go p.gomod p.gosum p.gotmpl p.helm p.haskell p.html p.http p.java p.javascript p.json p.latex p.lua p.markdown p.markdown_inline p.matlab p.nix p.printf p.python p.regex p.rust p.sql p.strace p.supercollider p.svelte p.swift p.terraform p.tmux p.toml p.typescript p.vim p.xml p.yaml p.zig ]))
|
||||||
];
|
];
|
||||||
|
|
||||||
|
|||||||
@ -60,7 +60,8 @@
|
|||||||
|
|
||||||
programs.lsd = {
|
programs.lsd = {
|
||||||
enable = true;
|
enable = true;
|
||||||
enableAliases = true;
|
# enableAliases = true;
|
||||||
|
enableZshIntegration = true;
|
||||||
};
|
};
|
||||||
|
|
||||||
programs.zoxide = {
|
programs.zoxide = {
|
||||||
@ -79,7 +80,7 @@
|
|||||||
du-dust
|
du-dust
|
||||||
glow
|
glow
|
||||||
ripgrep-all
|
ripgrep-all
|
||||||
llm
|
(python3.withPackages (ps: [ ps.llm ps.llm-gemini]))
|
||||||
];
|
];
|
||||||
|
|
||||||
home.sessionVariables = lib.mkMerge [ {
|
home.sessionVariables = lib.mkMerge [ {
|
||||||
|
|||||||
@ -39,8 +39,6 @@
|
|||||||
report.low.labels="ID,Active,Age,Deps,P,E,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
report.low.labels="ID,Active,Age,Deps,P,E,Project,Tag,Recur,S,Due,Until,Description,Urg";
|
||||||
report.low.sort="energy+,urgency-";
|
report.low.sort="energy+,urgency-";
|
||||||
|
|
||||||
context.today.read = "-deferred and (prio:H or +next)";
|
|
||||||
context.today.write = "prio:H or +next";
|
|
||||||
context.deferred.read = "+deferred";
|
context.deferred.read = "+deferred";
|
||||||
context.deferred.write = "+deferred";
|
context.deferred.write = "+deferred";
|
||||||
context.customer.read = "+cust";
|
context.customer.read = "+cust";
|
||||||
|
|||||||
@ -1,3 +1,6 @@
|
|||||||
|
vim.g.loaded_netrw = 1
|
||||||
|
vim.g.loaded_netrwPlugin = 1
|
||||||
|
|
||||||
-------------------------
|
-------------------------
|
||||||
-------- OPTIONS --------
|
-------- OPTIONS --------
|
||||||
-------------------------
|
-------------------------
|
||||||
@ -46,6 +49,7 @@ vim.opt.autoread = true
|
|||||||
vim.opt.syntax = 'on'
|
vim.opt.syntax = 'on'
|
||||||
vim.opt.encoding = 'utf-8'
|
vim.opt.encoding = 'utf-8'
|
||||||
vim.opt.completeopt = 'menu,menuone,noselect'
|
vim.opt.completeopt = 'menu,menuone,noselect'
|
||||||
|
vim.opt.termguicolors = true
|
||||||
|
|
||||||
|
|
||||||
----------------------------
|
----------------------------
|
||||||
@ -84,6 +88,40 @@ vim.api.nvim_create_autocmd('BufEnter', {
|
|||||||
command = 'silent! lcd %:p:h'
|
command = 'silent! lcd %:p:h'
|
||||||
})
|
})
|
||||||
|
|
||||||
|
-- Open nvim-tree when starting Neovim in a specific directory or any of its subdirectories
|
||||||
|
vim.api.nvim_create_autocmd("VimEnter", {
|
||||||
|
callback = function()
|
||||||
|
local args = vim.fn.argv()
|
||||||
|
|
||||||
|
if #args > 0 then
|
||||||
|
local current_dir = vim.fn.fnamemodify(args[1], ":p:h")
|
||||||
|
local dir_name = vim.fn.fnamemodify(current_dir, ":t")
|
||||||
|
|
||||||
|
-- Check if in a "notes" directory or its subdirectory
|
||||||
|
local in_notes = dir_name == "notes"
|
||||||
|
if not in_notes then
|
||||||
|
-- Check if any parent directory is named "notes"
|
||||||
|
local path_parts = vim.split(current_dir, "/", {plain = true})
|
||||||
|
for i, part in ipairs(path_parts) do
|
||||||
|
if part == "notes" then
|
||||||
|
in_notes = true
|
||||||
|
break
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
|
||||||
|
-- If in a notes directory or subdirectory, open the tree
|
||||||
|
if in_notes then
|
||||||
|
require("nvim-tree.api").tree.open()
|
||||||
|
vim.defer_fn(function()
|
||||||
|
require("nvim-tree.api").tree.expand_all()
|
||||||
|
-- After expanding, return focus to the main window/buffer
|
||||||
|
vim.cmd("wincmd p")
|
||||||
|
end, 100) -- Small delay to ensure tree is fully loaded before expanding
|
||||||
|
end
|
||||||
|
end
|
||||||
|
end
|
||||||
|
})
|
||||||
|
|
||||||
---------------------------
|
---------------------------
|
||||||
-------- FUNCTIONS --------
|
-------- FUNCTIONS --------
|
||||||
@ -92,3 +130,4 @@ vim.api.nvim_create_autocmd('BufEnter', {
|
|||||||
vim.api.nvim_create_user_command('TrimWhiteSpace', function()
|
vim.api.nvim_create_user_command('TrimWhiteSpace', function()
|
||||||
vim.cmd('%s/\\s\\+$//e')
|
vim.cmd('%s/\\s\\+$//e')
|
||||||
end, {})
|
end, {})
|
||||||
|
|
||||||
|
|||||||
@ -15,7 +15,7 @@ vim.keymap.set('n', '<leader>s', ':call WindowSwap#EasyWindowSwap()<CR>', {})
|
|||||||
|
|
||||||
-- Convenience
|
-- Convenience
|
||||||
vim.keymap.set('n', '<leader>w', ':w<CR>', { silent = true })
|
vim.keymap.set('n', '<leader>w', ':w<CR>', { silent = true })
|
||||||
vim.keymap.set('n', '<leader>F', ':e.<CR>', {})
|
vim.keymap.set('n', '<leader>F', ':NvimTreeToggle<CR>', { noremap = true, silent = true })
|
||||||
vim.keymap.set('n', 'Y', 'y$', {})
|
vim.keymap.set('n', 'Y', 'y$', {})
|
||||||
|
|
||||||
-- Telescope
|
-- Telescope
|
||||||
|
|||||||
@ -97,7 +97,6 @@ lspconfig.dockerls.setup({ capabilities = capabilities })
|
|||||||
lspconfig.docker_compose_language_service.setup({ capabilities = capabilities })
|
lspconfig.docker_compose_language_service.setup({ capabilities = capabilities })
|
||||||
lspconfig.flow.setup({ capabilities = capabilities })
|
lspconfig.flow.setup({ capabilities = capabilities })
|
||||||
lspconfig.marksman.setup({ capabilities = capabilities })
|
lspconfig.marksman.setup({ capabilities = capabilities })
|
||||||
lspconfig.als.setup({ capabilities = capabilities })
|
|
||||||
lspconfig.sqls.setup({ capabilities = capabilities })
|
lspconfig.sqls.setup({ capabilities = capabilities })
|
||||||
lspconfig.yamlls.setup({ capabilities = capabilities })
|
lspconfig.yamlls.setup({ capabilities = capabilities })
|
||||||
lspconfig.nil_ls.setup({ capabilities = capabilities })
|
lspconfig.nil_ls.setup({ capabilities = capabilities })
|
||||||
@ -188,3 +187,26 @@ require("copilot").setup({
|
|||||||
panel = { enabled = false },
|
panel = { enabled = false },
|
||||||
})
|
})
|
||||||
require("copilot_cmp").setup()
|
require("copilot_cmp").setup()
|
||||||
|
|
||||||
|
vim.g.bullets_enabled_file_types = {
|
||||||
|
'markdown',
|
||||||
|
'text',
|
||||||
|
'gitcommit',
|
||||||
|
'scratch'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
require("nvim-tree").setup({
|
||||||
|
sort = {
|
||||||
|
sorter = "case_sensitive",
|
||||||
|
},
|
||||||
|
view = {
|
||||||
|
width = 30,
|
||||||
|
},
|
||||||
|
renderer = {
|
||||||
|
group_empty = true,
|
||||||
|
},
|
||||||
|
-- filters = {
|
||||||
|
-- dotfiles = true,
|
||||||
|
-- },
|
||||||
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user