From 8616c2a5033099f6bee213aee0c0949e189853aa Mon Sep 17 00:00:00 2001 From: Uttarayan Mondal Date: Thu, 18 Apr 2024 14:45:44 +0530 Subject: [PATCH] feat(nvim): Connect to the tmux scratchpad in neovim fterm by default --- common/kitty.nix | 2 +- flake.lock | 2 +- neovim/nvim.nix | 5 +++-- 3 files changed, 5 insertions(+), 4 deletions(-) diff --git a/common/kitty.nix b/common/kitty.nix index 472aed41..6dc032bc 100644 --- a/common/kitty.nix +++ b/common/kitty.nix @@ -7,7 +7,7 @@ enable = device.hasGui; font = { # name = "Hasklug Nerd Font Mono"; - name = "Monaspace Krypton Var Medium"; + name = "Monaspace Krypton Var Light"; size = 13; }; settings = { diff --git a/flake.lock b/flake.lock index 4b0b9990..593697bb 100644 --- a/flake.lock +++ b/flake.lock @@ -1239,7 +1239,7 @@ }, "locked": { "lastModified": 1, - "narHash": "sha256-Z+jHiHfkHgc42uzQpNO1XYh9RNYzzZYNda35WJx5ib0=", + "narHash": "sha256-ersvPhXlxW/reEF16X+fjqp8StsjdUQLDpjtAxCH0HU=", "path": "./neovim", "type": "path" }, diff --git a/neovim/nvim.nix b/neovim/nvim.nix index fb2c701b..317d9e09 100644 --- a/neovim/nvim.nix +++ b/neovim/nvim.nix @@ -317,7 +317,7 @@ in rec { "" = "vim.lsp.buf.definition"; "" = "require('FTerm').toggle"; "F" = "function() vim.lsp.buf.format({ async = true }) end"; - "gi" = "require'telescope.builtin'.lsp_implementations"; + "gi" = "require'telescope.builtin'.lsp_references"; "a" = "vim.lsp.buf.code_action"; "bb" = "require'dap'.toggle_breakpoint"; "du" = "require'dapui'.toggle"; @@ -421,7 +421,7 @@ in rec { height = 0.99, width = 0.95, }, - cmd = "${pkgs.fish}/bin/fish", + cmd = "sh -c 'tmux attach -t scratch || tmux new -s scratch'", blend = 10, }) @@ -431,6 +431,7 @@ in rec { ["core.concealer"] = { config = { icon_preset = "diamond" } }, + ["core.export"] = {}, ["core.keybinds"] = { -- https://github.com/nvim-neorg/neorg/blob/main/lua/neorg/modules/core/keybinds/keybinds.lua config = {