Compare commits

..

1 Commits

Author SHA1 Message Date
81d0c6cf37 chore: cleanup warnings and commented code 2024-10-11 16:09:08 -04:00
3 changed files with 59 additions and 229 deletions

View File

@ -48,9 +48,7 @@
"inputs": {
"d2-vim-src": "d2-vim-src",
"flake-utils": "flake-utils_3",
"hunk-nvim-src": "hunk-nvim-src",
"ionide-nvim-src": "ionide-nvim-src",
"naersk": "naersk_2",
"neogit-src": "neogit-src",
"nil-flake": "nil-flake",
"nixpkgs": [
@ -58,18 +56,15 @@
],
"nurl-flake": "nurl-flake",
"roslyn-lsp": "roslyn-lsp",
"rust-overlay": "rust-overlay_3",
"tree-sitter-cli-src": "tree-sitter-cli-src",
"treesitter-context": "treesitter-context",
"victoria-logs-src": "victoria-logs-src",
"zig-src": "zig-src"
"victoria-logs-src": "victoria-logs-src"
},
"locked": {
"lastModified": 1732111397,
"narHash": "sha256-2qTl0546a5xZySPdN23gFhz48V6tA2INDjKm4NPBMTs=",
"lastModified": 1728571393,
"narHash": "sha256-ERtPLZLCyp1zZkXieq05GgvEiR4merRWW8jmHqMgg/Q=",
"owner": "zaphar",
"repo": "nix-flakes",
"rev": "be1645a420b26b5a69a734db8596351a51d5a021",
"rev": "06fe1017712529cc66aae868ce0f7c17551724e7",
"type": "github"
},
"original": {
@ -156,7 +151,7 @@
"inputs": {
"flake-compat": "flake-compat_2",
"flake-utils": "flake-utils_5",
"naersk": "naersk_3"
"naersk": "naersk_2"
},
"locked": {
"lastModified": 1678814232,
@ -504,9 +499,9 @@
"inputs": {
"flake-compat": "flake-compat_3",
"flake-utils": "flake-utils_6",
"naersk": "naersk_4",
"nixpkgs": "nixpkgs_8",
"rust-overlay": "rust-overlay_4"
"naersk": "naersk_3",
"nixpkgs": "nixpkgs_7",
"rust-overlay": "rust-overlay_3"
},
"locked": {
"lastModified": 1716397295,
@ -543,22 +538,6 @@
"type": "github"
}
},
"hunk-nvim-src": {
"flake": false,
"locked": {
"lastModified": 1726776875,
"narHash": "sha256-CbvfRmgVshzEH/EUn1/PfNzT+MChtTTmxfi+gTZ7Q6Y=",
"owner": "julienvincent",
"repo": "hunk.nvim",
"rev": "eb89245a66bdfce10436d15923bf4deb43d23c96",
"type": "github"
},
"original": {
"owner": "julienvincent",
"repo": "hunk.nvim",
"type": "github"
}
},
"ionide-nvim-src": {
"flake": false,
"locked": {
@ -611,25 +590,7 @@
},
"naersk_2": {
"inputs": {
"nixpkgs": "nixpkgs_3"
},
"locked": {
"lastModified": 1721727458,
"narHash": "sha256-r/xppY958gmZ4oTfLiHN0ZGuQ+RSTijDblVgVLFi1mw=",
"owner": "nix-community",
"repo": "naersk",
"rev": "3fb418eaf352498f6b6c30592e3beb63df42ef11",
"type": "github"
},
"original": {
"owner": "nix-community",
"repo": "naersk",
"type": "github"
}
},
"naersk_3": {
"inputs": {
"nixpkgs": "nixpkgs_6"
"nixpkgs": "nixpkgs_5"
},
"locked": {
"lastModified": 1671096816,
@ -645,9 +606,9 @@
"type": "github"
}
},
"naersk_4": {
"naersk_3": {
"inputs": {
"nixpkgs": "nixpkgs_7"
"nixpkgs": "nixpkgs_6"
},
"locked": {
"lastModified": 1698420672,
@ -663,9 +624,9 @@
"type": "github"
}
},
"naersk_5": {
"naersk_4": {
"inputs": {
"nixpkgs": "nixpkgs_13"
"nixpkgs": "nixpkgs_12"
},
"locked": {
"lastModified": 1650101877,
@ -716,7 +677,7 @@
"neovim-flake": {
"inputs": {
"flake-utils": "flake-utils_8",
"nixpkgs": "nixpkgs_9"
"nixpkgs": "nixpkgs_8"
},
"locked": {
"dir": "contrib",
@ -738,7 +699,7 @@
"nil-flake": {
"inputs": {
"flake-utils": "flake-utils_4",
"nixpkgs": "nixpkgs_4",
"nixpkgs": "nixpkgs_3",
"rust-overlay": "rust-overlay_2"
},
"locked": {
@ -758,8 +719,8 @@
"nil-flake_2": {
"inputs": {
"flake-utils": "flake-utils_9",
"nixpkgs": "nixpkgs_10",
"rust-overlay": "rust-overlay_5"
"nixpkgs": "nixpkgs_9",
"rust-overlay": "rust-overlay_4"
},
"locked": {
"lastModified": 1694177726,
@ -808,22 +769,6 @@
}
},
"nixpkgs_10": {
"locked": {
"lastModified": 1690441914,
"narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "db8672b8d0a2593c2405aed0c1dfa64b2a2f428f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nixpkgs_11": {
"locked": {
"lastModified": 1717179513,
"narHash": "sha256-vboIEwIQojofItm2xGCdZCzW96U85l9nDW3ifMuAIdM=",
@ -839,7 +784,7 @@
"type": "github"
}
},
"nixpkgs_12": {
"nixpkgs_11": {
"locked": {
"lastModified": 1689850295,
"narHash": "sha256-fUYf6WdQlhd2H+3aR8jST5dhFH1d0eE22aes8fNIfyk=",
@ -855,7 +800,7 @@
"type": "github"
}
},
"nixpkgs_13": {
"nixpkgs_12": {
"locked": {
"lastModified": 1650109093,
"narHash": "sha256-tqlnKrAdJktRLXTou9le0oTqrYBAFpGscV5RADdpArU=",
@ -869,7 +814,7 @@
"type": "indirect"
}
},
"nixpkgs_14": {
"nixpkgs_13": {
"locked": {
"lastModified": 1682109806,
"narHash": "sha256-d9g7RKNShMLboTWwukM+RObDWWpHKaqTYXB48clBWXI=",
@ -900,20 +845,6 @@
}
},
"nixpkgs_3": {
"locked": {
"lastModified": 1728538411,
"narHash": "sha256-f0SBJz1eZ2yOuKUr5CA9BHULGXVSn6miBuUWdTyhUhU=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "b69de56fac8c2b6f8fd27f2eca01dcda8e0a4221",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_4": {
"locked": {
"lastModified": 1726481836,
"narHash": "sha256-MWTBH4dd5zIz2iatDb8IkqSjIeFum9jAqkFxgHLdzO4=",
@ -929,7 +860,7 @@
"type": "github"
}
},
"nixpkgs_5": {
"nixpkgs_4": {
"locked": {
"lastModified": 1708296515,
"narHash": "sha256-FyF489fYNAUy7b6dkYV6rGPyzp+4tThhr80KNAaF/yY=",
@ -945,7 +876,7 @@
"type": "github"
}
},
"nixpkgs_6": {
"nixpkgs_5": {
"locked": {
"lastModified": 1678724065,
"narHash": "sha256-MjeRjunqfGTBGU401nxIjs7PC9PZZ1FBCZp/bRB3C2M=",
@ -959,6 +890,20 @@
"type": "indirect"
}
},
"nixpkgs_6": {
"locked": {
"lastModified": 1708151420,
"narHash": "sha256-MGT/4aGCWQPQiu6COqJdCj9kSpLPiShgbwpbC38YXC8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6e2f00c83911461438301db0dba5281197fe4b3a",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_7": {
"locked": {
"lastModified": 1708151420,
@ -974,20 +919,6 @@
}
},
"nixpkgs_8": {
"locked": {
"lastModified": 1708151420,
"narHash": "sha256-MGT/4aGCWQPQiu6COqJdCj9kSpLPiShgbwpbC38YXC8=",
"owner": "NixOS",
"repo": "nixpkgs",
"rev": "6e2f00c83911461438301db0dba5281197fe4b3a",
"type": "github"
},
"original": {
"id": "nixpkgs",
"type": "indirect"
}
},
"nixpkgs_9": {
"locked": {
"lastModified": 1715787315,
"narHash": "sha256-cYApT0NXJfqBkKcci7D9Kr4CBYZKOQKDYA23q8XNuWg=",
@ -1003,9 +934,25 @@
"type": "github"
}
},
"nixpkgs_9": {
"locked": {
"lastModified": 1690441914,
"narHash": "sha256-Ac+kJQ5z9MDAMyzSc0i0zJDx2i3qi9NjlW5Lz285G/I=",
"owner": "nixos",
"repo": "nixpkgs",
"rev": "db8672b8d0a2593c2405aed0c1dfa64b2a2f428f",
"type": "github"
},
"original": {
"owner": "nixos",
"ref": "nixpkgs-unstable",
"repo": "nixpkgs",
"type": "github"
}
},
"nurl-flake": {
"inputs": {
"nixpkgs": "nixpkgs_5"
"nixpkgs": "nixpkgs_4"
},
"locked": {
"lastModified": 1726505596,
@ -1023,7 +970,7 @@
},
"nurl-flake_2": {
"inputs": {
"nixpkgs": "nixpkgs_12"
"nixpkgs": "nixpkgs_11"
},
"locked": {
"lastModified": 1701273941,
@ -1052,7 +999,7 @@
"neogit-src": "neogit-src_2",
"neovim-flake": "neovim-flake",
"nil-flake": "nil-flake_2",
"nixpkgs": "nixpkgs_11",
"nixpkgs": "nixpkgs_10",
"nixpkgs-darwin": "nixpkgs-darwin",
"nurl-flake": "nurl-flake_2",
"roslyn-lsp": "roslyn-lsp_2",
@ -1101,7 +1048,7 @@
"inputs": {
"flake-compat": "flake-compat_4",
"flake-utils": "flake-utils_10",
"naersk": "naersk_5"
"naersk": "naersk_4"
},
"locked": {
"lastModified": 1695686584,
@ -1184,28 +1131,6 @@
}
},
"rust-overlay_3": {
"inputs": {
"nixpkgs": [
"custom-flakes",
"nixpkgs"
]
},
"locked": {
"lastModified": 1728461096,
"narHash": "sha256-cd0cXB85B3kGpm+iumP9xCnqFErspXL9Z/2X59kQ6c4=",
"owner": "oxalica",
"repo": "rust-overlay",
"rev": "e310b9bd71fa6c6a9fec0a8cf5af43ce798a0ad6",
"type": "github"
},
"original": {
"owner": "oxalica",
"ref": "stable",
"repo": "rust-overlay",
"type": "github"
}
},
"rust-overlay_4": {
"inputs": {
"flake-utils": "flake-utils_7",
"nixpkgs": [
@ -1228,7 +1153,7 @@
"type": "github"
}
},
"rust-overlay_5": {
"rust-overlay_4": {
"inputs": {
"flake-utils": [
"nil-flake",
@ -1259,7 +1184,7 @@
"flake-utils": "flake-utils_12",
"gitignore": "gitignore",
"libtexpdf-src": "libtexpdf-src",
"nixpkgs": "nixpkgs_14"
"nixpkgs": "nixpkgs_13"
},
"locked": {
"lastModified": 1694595810,
@ -1425,22 +1350,6 @@
"type": "github"
}
},
"tree-sitter-cli-src": {
"flake": false,
"locked": {
"lastModified": 1728916102,
"narHash": "sha256-Aslud0Di5u3gaVHguEZPGkYwDJQPj6BACjo7+2wwfhE=",
"owner": "tree-sitter",
"repo": "tree-sitter",
"rev": "fb23de926134188e2711bba2f7b589e3f25c14fd",
"type": "github"
},
"original": {
"owner": "tree-sitter",
"repo": "tree-sitter",
"type": "github"
}
},
"treesitter-context": {
"flake": false,
"locked": {
@ -1505,23 +1414,6 @@
"repo": "VictoriaMetrics",
"type": "github"
}
},
"zig-src": {
"flake": false,
"locked": {
"lastModified": 1717700711,
"narHash": "sha256-5qSiTq+UWGOwjDVZMIrAt2cDKHkyNPBSAEjpRQUByFM=",
"owner": "ziglang",
"repo": "zig",
"rev": "cf90dfd3098bef5b3c22d5ab026173b3c357f2dd",
"type": "github"
},
"original": {
"owner": "ziglang",
"ref": "0.13.0",
"repo": "zig",
"type": "github"
}
}
},
"root": "root",

View File

@ -98,7 +98,6 @@
};
neogit-nvim = custom-flakes.packages."${system}".neogit-nvim;
d2-vim = custom-flakes.packages."${system}".d2-vim;
hunk-nvim = custom-flakes.packages."${system}".hunk-nvim;
# TODO(zaphar): Apparently this is a remote plugin so it needs some additional love.
#nvim-bnf = custom-flakes.packages."${system}".nvim-bnf;
nvim-treesitter-context = custom-flakes.packages."${system}".nvim-treesitter-context;
@ -205,7 +204,7 @@ EOF";
vim-dadbod-completion
vim-dasht
direnv-vim
]) ++ [ possession-nvim harpoon-nvim d2-vim hunk-nvim neogit-nvim ];
]) ++ [ possession-nvim harpoon-nvim d2-vim neogit-nvim ];
};
};
};

View File

@ -144,14 +144,6 @@ local caps = vim.tbl_deep_extend(
local lspconfig = require("lspconfig")
-- Typst
lspconfig.tinymist.setup{
capabilities = caps,
settings = {
exportPdf = "onSave",
},
}
-- Terraform lsp setup
lspconfig.terraformls.setup {}
@ -577,59 +569,6 @@ require('lualine').setup {
}
}
-- Hunk diff tree viewer and editor. Replacement for Meld and company
local hunk = require("hunk")
hunk.setup({
keys = {
global = {
quit = { "q" },
accept = { "<leader><Cr>" },
focus_tree = { "<leader>e" },
},
tree = {
expand_node = { "l", "<Right>" },
collapse_node = { "h", "<Left>" },
open_file = { "<Cr>" },
toggle_file = { "a" },
},
diff = {
toggle_line = { "a" },
toggle_hunk = { "A" },
},
},
ui = {
tree = {
-- Mode can either be `nested` or `flat`
mode = "nested",
width = 35,
},
--- Can be either `vertical` or `horizontal`
layout = "vertical",
},
icons = {
selected = "󰡖",
deselected = "",
partially_selected = "󰛲",
folder_open = "",
folder_closed = "",
},
-- Called right after each window and buffer are created.
--hooks = {
-- ---@param _context { buf: number, tree: NuiTree, opts: table }
-- on_tree_mount = function(_context) end,
-- ---@param _context { buf: number, win: number }
-- on_diff_mount = function(_context) end,
--},
})
local dap = require('dap')
dap.adapters.lldb = {
type = "executable",