Compare commits

..

3 commits

Author SHA1 Message Date
b622457551 Added missing vsnip plugin 2023-08-11 10:12:15 -07:00
d57f856709 nix flake update 2023-08-11 09:23:07 -07:00
34422c5256 added harpoon and a few keybinds 2023-08-11 09:08:09 -07:00
4 changed files with 36 additions and 28 deletions

View file

@ -136,11 +136,11 @@
] ]
}, },
"locked": { "locked": {
"lastModified": 1691225770, "lastModified": 1691672736,
"narHash": "sha256-O5slH8nW8msTAqVAS5rkvdHSkjmrO+JauuSDzZCmv2M=", "narHash": "sha256-HNPA/dKHerA0p4OsToEcW/DtTSXBcK5gFRsy/yPgV/Y=",
"owner": "nix-community", "owner": "nix-community",
"repo": "home-manager", "repo": "home-manager",
"rev": "0a014a729cdd54d9919ff36b714d047909d7a4c8", "rev": "6e1eff9aac0e8d84bda7f2d60ba6108eea9b7e79",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -155,11 +155,11 @@
}, },
"locked": { "locked": {
"dir": "nix", "dir": "nix",
"lastModified": 1690358150, "lastModified": 1691302749,
"narHash": "sha256-pphRp5UIbbKfRJl9MLny3CMUI+SDMISim3Ol2Wh73Bg=", "narHash": "sha256-mak2sOtyT4LOcn6zPPMdaWH92tm9qC7Hta7+IaMmTGk=",
"owner": "kmonad", "owner": "kmonad",
"repo": "kmonad", "repo": "kmonad",
"rev": "5bdd05a9415eaf35b163d6ee8feaa7f64ad9b73d", "rev": "ad69e1be793e61dce2d586481c0f6dda7d978c25",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -233,11 +233,11 @@
}, },
"nixpkgs_2": { "nixpkgs_2": {
"locked": { "locked": {
"lastModified": 1691186842, "lastModified": 1691654369,
"narHash": "sha256-wxBVCvZUwq+XS4N4t9NqsHV4E64cPVqQ2fdDISpjcw0=", "narHash": "sha256-gSILTEx1jRaJjwZxRlnu3ZwMn1FVNk80qlwiCX8kmpo=",
"owner": "nixos", "owner": "nixos",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "18036c0be90f4e308ae3ebcab0e14aae0336fe42", "rev": "ce5e4a6ef2e59d89a971bc434ca8ca222b9c7f5e",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -249,11 +249,11 @@
}, },
"nixpkgs_3": { "nixpkgs_3": {
"locked": { "locked": {
"lastModified": 1690031011, "lastModified": 1691186842,
"narHash": "sha256-kzK0P4Smt7CL53YCdZCBbt9uBFFhE0iNvCki20etAf4=", "narHash": "sha256-wxBVCvZUwq+XS4N4t9NqsHV4E64cPVqQ2fdDISpjcw0=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "12303c652b881435065a98729eb7278313041e49", "rev": "18036c0be90f4e308ae3ebcab0e14aae0336fe42",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -286,11 +286,11 @@
"pre-commit-hooks": "pre-commit-hooks" "pre-commit-hooks": "pre-commit-hooks"
}, },
"locked": { "locked": {
"lastModified": 1690107839, "lastModified": 1691674049,
"narHash": "sha256-ll3j+g3qz239sfLHYhHynKRWhMkxFXsJ9MOAXzSqQMc=", "narHash": "sha256-M9SA4MZ3IuFCP4XI2IGAepvEYp3stmTwltUcnGu3Ml8=",
"owner": "nix-community", "owner": "nix-community",
"repo": "nixvim", "repo": "nixvim",
"rev": "4c25722d73694245e767839b462026ab2296542b", "rev": "36a6ab4ba7403dca50b2ca2de5fd5fd57fb19335",
"type": "github" "type": "github"
}, },
"original": { "original": {
@ -338,11 +338,11 @@
"nixpkgs-stable": "nixpkgs-stable" "nixpkgs-stable": "nixpkgs-stable"
}, },
"locked": { "locked": {
"lastModified": 1689668210, "lastModified": 1691256628,
"narHash": "sha256-XAATwDkaUxH958yXLs1lcEOmU6pSEIkatY3qjqk8X0E=", "narHash": "sha256-M0YXHemR3zbyhM7PvJa5lzGhWVf6kM/fpZ4cWe/VIhI=",
"owner": "cachix", "owner": "cachix",
"repo": "pre-commit-hooks.nix", "repo": "pre-commit-hooks.nix",
"rev": "eb433bff05b285258be76513add6f6c57b441775", "rev": "3139c4d1f7732cab89f06492bdd4677b877e3785",
"type": "github" "type": "github"
}, },
"original": { "original": {

View file

@ -11,6 +11,7 @@
"10.0.0.183" = [ "headscale.nickiel.net" ]; "10.0.0.183" = [ "headscale.nickiel.net" ];
"100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ]; "100.64.0.1" = ["files.nickiel.net" "git.nickiel.net" "nickiel.net" "jellyfin.nickiel.net" ];
}; };
# tailscale set --exit-node <SEVERNAME> to route through an exit node
services.tailscale.enable = true; services.tailscale.enable = true;
networking.firewall = { networking.firewall = {
checkReversePath = "loose"; checkReversePath = "loose";

View file

@ -32,11 +32,16 @@ in
maps.normal = { maps.normal = {
"<leader>ot" = "<cmd>vs | te<cr>"; "<leader>ot" = "<cmd>vs | te<cr>";
"<leader>o." = "<cmd>Telescope file_browser<cr>"; "<leader>o." = "<cmd>Telescope file_browser<cr>";
"<leader>." = "<cmd>Telescope find_files<cr>"; # cwd full sub-dir fuzzy find
"<leader>of" = "<cmd>Telescope live_grep<cr>"; # cwd search file
"<leader>op" = "<cmd>NvimTreeToggle<cr>"; "<leader>op" = "<cmd>NvimTreeToggle<cr>";
"<leader>am" = "<cmd>lua require(\"harpoon.mark\").add_file()<cr>"; # leader + add + mark
"<leader>m" = "<cmd>Telescope harpoon marks<cr>"; # open harpoon marks in telescope
}; };
plugins = { plugins = {
telescope = {
harpoon = {
enable = true; enable = true;
}; };
@ -45,8 +50,9 @@ in
openOnSetup = true; openOnSetup = true;
}; };
presence-nvim = { nvim-autopairs = {
enable = true; enable = true;
checkTs = true;
}; };
treesitter = { treesitter = {
@ -59,9 +65,7 @@ in
"lua" "lua"
]; ];
}; };
treesitter-rainbow = { treesitter-rainbow.enable = true;
enable = true;
};
treesitter-refactor = { treesitter-refactor = {
enable = true; enable = true;
#highlightCurrentScope.enable = true; #highlightCurrentScope.enable = true;
@ -85,6 +89,7 @@ in
}; };
}; };
telescope.enable = true;
rust-tools.enable = true; rust-tools.enable = true;
nvim-cmp.enable = true; nvim-cmp.enable = true;
@ -92,13 +97,13 @@ in
# Read settings here: https://github.com/mfussenegger/nvim-dap#Usage # Read settings here: https://github.com/mfussenegger/nvim-dap#Usage
# See :help dap.txt, :help dap-mapping and :help dap-api. # See :help dap.txt, :help dap-mapping and :help dap-api.
cmp-dap.enable = true; cmp-dap.enable = true;
cmp-vsnip.enable = true; cmp-vsnip.enable = true;
cmp-buffer.enable = true; cmp-buffer.enable = true;
cmp-nvim-lsp-signature-help.enable = true; cmp-nvim-lsp-signature-help.enable = true;
cmp-nvim-lua.enable = true; cmp-nvim-lua.enable = true;
cmp-path.enable = true; cmp-path.enable = true;
presence-nvim.enable = true;
nix.enable = true; nix.enable = true;
airline = { airline = {
enable = true; enable = true;
@ -111,6 +116,7 @@ in
telescope-file-browser-nvim telescope-file-browser-nvim
monokai-pro-nvim monokai-pro-nvim
nvim-lspconfig nvim-lspconfig
vim-vsnip
hop-nvim hop-nvim
]; ];
}; };

View file

@ -8,7 +8,7 @@ rt.setup({
-- Hover actions -- Hover actions
vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr }) vim.keymap.set("n", "<C-space>", rt.hover_actions.hover_actions, { buffer = bufnr })
-- Code action groups -- Code action groups
vim.keymap.set("n", "<Leader>a", rt.code_action_group.code_action_group, { buffer = bufnr }) vim.keymap.set("n", "<leader>a", rt.code_action_group.code_action_group, { buffer = bufnr })
end, end,
}, },
}) })
@ -130,6 +130,10 @@ vim.keymap.set('', '<leader>ff', function()
end, {remap=true}) end, {remap=true})
require("telescope").load_extension "file_browser"
require("telescope").load_extension("harpoon")
-- Themeing
require("monokai-pro").setup({ require("monokai-pro").setup({
transparent_background = true, transparent_background = true,
terminal_colors = true, terminal_colors = true,
@ -178,6 +182,3 @@ require("monokai-pro").setup({
}) })
vim.cmd.colorscheme "monokai-pro-spectrum" vim.cmd.colorscheme "monokai-pro-spectrum"
require("telescope").load_extension "file_browser"