summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShubham Saini <me@ubh.sh>2023-11-03 05:49:46 +0000
committerShubham Saini <me@ubh.sh>2023-11-03 05:49:46 +0000
commitf84096679327feda28fd84609d789b727482afb4 (patch)
tree6dfecb1d6a6044428c4f9806e00848773fad973d
parentc8e8a31f5c483a7db3092a0f572caa471e96dc49 (diff)
added hugo
-rw-r--r--hosts/morpheus/home.nix1
-rw-r--r--modules/neovim.nix24
2 files changed, 13 insertions, 12 deletions
diff --git a/hosts/morpheus/home.nix b/hosts/morpheus/home.nix
index 619d6d2..1e178df 100644
--- a/hosts/morpheus/home.nix
+++ b/hosts/morpheus/home.nix
@@ -19,6 +19,7 @@
19 fzf 19 fzf
20 jq 20 jq
21 nmap 21 nmap
22 hugo
22 lf 23 lf
23 pinentry_mac 24 pinentry_mac
24 postgresql 25 postgresql
diff --git a/modules/neovim.nix b/modules/neovim.nix
index 1984029..b032d01 100644
--- a/modules/neovim.nix
+++ b/modules/neovim.nix
@@ -11,46 +11,46 @@
11 extraLuaConfig = '' 11 extraLuaConfig = ''
12 vim.g.mapleader = " " 12 vim.g.mapleader = " "
13 vim.keymap.set("n", "<leader>n", vim.cmd.Ex) 13 vim.keymap.set("n", "<leader>n", vim.cmd.Ex)
14 14
15 vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv") 15 vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
16 vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv") 16 vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
17 17
18 vim.keymap.set("n", "J", "mzJ`z") 18 vim.keymap.set("n", "J", "mzJ`z")
19 vim.keymap.set("n", "<C-d>", "<C-d>zz") 19 vim.keymap.set("n", "<C-d>", "<C-d>zz")
20 vim.keymap.set("n", "<C-u>", "<C-u>zz") 20 vim.keymap.set("n", "<C-u>", "<C-u>zz")
21 vim.keymap.set("n", "n", "nzzzv") 21 vim.keymap.set("n", "n", "nzzzv")
22 vim.keymap.set("n", "N", "Nzzzv") 22 vim.keymap.set("n", "N", "Nzzzv")
23 23
24 -- greatest remap ever 24 -- greatest remap ever
25 vim.keymap.set("x", "<leader>p", [["_dP]]) 25 vim.keymap.set("x", "<leader>p", [["_dP]])
26 26
27 -- next greatest remap ever : asbjornHaland 27 -- next greatest remap ever : asbjornHaland
28 vim.keymap.set({"n", "v"}, "<leader>y", [["+y]]) 28 vim.keymap.set({"n", "v"}, "<leader>y", [["+y]])
29 vim.keymap.set("n", "<leader>Y", [["+Y]]) 29 vim.keymap.set("n", "<leader>Y", [["+Y]])
30 30
31 vim.keymap.set({"n", "v"}, "<leader>d", [["_d]]) 31 vim.keymap.set({"n", "v"}, "<leader>d", [["_d]])
32 32
33 vim.keymap.set("n", "<leader>f", vim.lsp.buf.format) 33 vim.keymap.set("n", "<leader>f", vim.lsp.buf.format)
34 34
35 vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz") 35 vim.keymap.set("n", "<C-k>", "<cmd>cnext<CR>zz")
36 vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz") 36 vim.keymap.set("n", "<C-j>", "<cmd>cprev<CR>zz")
37 vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz") 37 vim.keymap.set("n", "<leader>k", "<cmd>lnext<CR>zz")
38 vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz") 38 vim.keymap.set("n", "<leader>j", "<cmd>lprev<CR>zz")
39 39
40 vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]]) 40 vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><Left>]])
41 vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true }) 41 vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
42 42
43 vim.keymap.set("n", "<leader><tab>", ":FZF<CR>") 43 vim.keymap.set("n", "<leader><tab>", ":FZF<CR>")
44 vim.keymap.set("n", "<leader>q", ":wq<CR>") 44 vim.keymap.set("n", "<leader>q", ":wq<CR>")
45 vim.keymap.set("n", "<leader>w", ":w<CR>") 45 vim.keymap.set("n", "<leader>w", ":w<CR>")
46 46
47 vim.keymap.set("n", "<C-h>", "<C-w>h") 47 vim.keymap.set("n", "<C-h>", "<C-w>h")
48 vim.keymap.set("n", "<C-j>", "<C-w>j") 48 vim.keymap.set("n", "<C-j>", "<C-w>j")
49 vim.keymap.set("n", "<C-k>", "<C-w>k") 49 vim.keymap.set("n", "<C-k>", "<C-w>k")
50 vim.keymap.set("n", "<C-l>", "<C-w>l") 50 vim.keymap.set("n", "<C-l>", "<C-w>l")
51 51
52 vim.keymap.set("n", "S", ":%s//gI<Left><Left><Left>") 52 vim.keymap.set("n", "S", ":%s//gI<Left><Left><Left>")
53 53
54 -- bujo 54 -- bujo
55 vim.keymap.set("n", "<C-n>", "<Plug>BujoAddnormal") 55 vim.keymap.set("n", "<C-n>", "<Plug>BujoAddnormal")
56 vim.keymap.set("i", "<C-n>", "<Plug>BujoAddinsert") 56 vim.keymap.set("i", "<C-n>", "<Plug>BujoAddinsert")