From 7dcd592eae886dc8edde2dc65d6e6323201a2aaf Mon Sep 17 00:00:00 2001 From: Raymaekers Luca Date: Sat, 14 Sep 2024 19:48:38 +0200 Subject: checkpoint - changed installation of tmux-navigator - removed init.lua file in user/ directory - added autocmd for terminal in insert mode - added keybind for opening terminal - added keybinds for lsp commands - added lua lsp setup - added nvim-cmp - added keybind for editing config - added keybinds for opening splits - added conceallevel = 2 - commented encoding options - plugins: - added go.nvim - added cmp-calc - markdown: - disable pairs for quotes - added pairs in markdown - go: - added go lsp - added autoformat of go files on save --- lua/user/map.lua | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'lua/user/map.lua') diff --git a/lua/user/map.lua b/lua/user/map.lua index ca4142b..230588f 100644 --- a/lua/user/map.lua +++ b/lua/user/map.lua @@ -4,6 +4,11 @@ local map = vim.keymap.set vim.g.mapleader = " " vim.g.maplocalleader = "," +-- open config +map("n", " c", function() + vim.cmd("cd ~/.config/nvim") + vim.cmd("e " .. "init.lua") +end, { desc = "Open neovim config file" }) -- Move text easilly map("v", "J", ":m '>+1gv=gv", { desc = "Move selected text up" }) map("v", "K", ":m '<-2gv=gv", { desc = "Move selected text down" }) @@ -23,6 +28,8 @@ map("i", "", "A", { noremap = true }) map("i", "", "D", { noremap = true }) -- buffers +map("n", "sp", "sp", { desc = "Open horizontal split" }) +map("n", "vs", "vs", { desc = "Open vertical split" }) map("n", "gb", "buffers:buffer", { noremap = true }) map("n", "q", "q!", { noremap = true }) map("n", "Q", "qa!", { noremap = true }) -- cgit v1.2.3