diff options
Diffstat (limited to 'config/essentials/nvim')
-rw-r--r-- | config/essentials/nvim/after/plugin/luasnip.lua | 3 | ||||
-rw-r--r-- | config/essentials/nvim/ftplugin/telekasten.lua | 1 | ||||
-rw-r--r-- | config/essentials/nvim/lua/user/remap.lua | 3 | ||||
-rw-r--r-- | config/essentials/nvim/lua/user/zk.lua | 20 |
4 files changed, 15 insertions, 12 deletions
diff --git a/config/essentials/nvim/after/plugin/luasnip.lua b/config/essentials/nvim/after/plugin/luasnip.lua index 70d7570..319a68c 100644 --- a/config/essentials/nvim/after/plugin/luasnip.lua +++ b/config/essentials/nvim/after/plugin/luasnip.lua @@ -213,7 +213,8 @@ ls.add_snippets("cs", { ls.add_snippets("telekasten", { --link - s("ln", fmt( + parse("ln", "[[$0]]", {}), + s("cln", fmt( [[ [{}]({}){} ]], diff --git a/config/essentials/nvim/ftplugin/telekasten.lua b/config/essentials/nvim/ftplugin/telekasten.lua index 2781b12..c180777 100644 --- a/config/essentials/nvim/ftplugin/telekasten.lua +++ b/config/essentials/nvim/ftplugin/telekasten.lua @@ -24,3 +24,4 @@ vim.keymap.set("n", "<LocalLeader>y", require("telekasten").yank_notelink) vim.keymap.set("n", "<Return>", require("telekasten").follow_link) vim.keymap.set("i", "<LocalLeader>l", "<esc>I[<esc>A]()<left><C-r>+<esc>A") +vim.keymap.set("n", "<LocalLeader>l", "I[[<esc>A]]<esc>") diff --git a/config/essentials/nvim/lua/user/remap.lua b/config/essentials/nvim/lua/user/remap.lua index e194ffa..fadca21 100644 --- a/config/essentials/nvim/lua/user/remap.lua +++ b/config/essentials/nvim/lua/user/remap.lua @@ -77,7 +77,8 @@ end, { noremap = true }) vim.keymap.set("n", "<Leader>P", "<cmd>PackerSync<cr>", { noremap = true }) -- spelling -vim.keymap.set("n", "<Leader><C-s>", "<cmd>setlocal spell!<cr>", { noremap = true }) +vim.keymap.set("n", "<C-s>s", "<cmd>setlocal spell!<cr>", { noremap = true }) +vim.keymap.set("n", "<C-s>g", "z=1<cr><cr>", { noremap = true }) -- -- open terminal in file's parent director -- -- this needs to be asynchrous diff --git a/config/essentials/nvim/lua/user/zk.lua b/config/essentials/nvim/lua/user/zk.lua index 7e15fa3..98476ca 100644 --- a/config/essentials/nvim/lua/user/zk.lua +++ b/config/essentials/nvim/lua/user/zk.lua @@ -48,52 +48,52 @@ require("telekasten").setup({ }, BusinessEnglish = { home = home .. "/" .. "BusinessEnglish", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, DataEssentials = { home = home .. "/" .. "DataEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, SoftwareDesign = { home = home .. "/" .. "SoftwareDesign", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, BusinessCommunication = { home = home .. "/" .. "BusinessCommunication", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, AIEssentials = { home = home .. "/" .. "AIEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, NETEssentials = { home = home .. "/" .. "NETEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, iTalent = { home = home .. "/" .. "iTalent", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, ScalingNetworks = { home = home .. "/" .. "ScalingNetworks", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, RoutingSwitchingEssentials = { home = home .. "/" .. "RoutingSwitchingEssentials", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, SoftwareDesignAndQualityAssurance = { home = home .. "/" .. "SoftwareDesignAndQualityAssurance", - template_new_note = home .. "/" .. "templates/new_note.md", + template_new_note = home .. "/" .. "templates/school.md", new_note_filename = "title", }, C = { |