added basic keymaps

This commit is contained in:
geremia 2023-09-11 15:05:14 +02:00
parent 17e4e8264f
commit 3b8f438b14
1 changed files with 11 additions and 3 deletions

View File

@ -459,7 +459,7 @@ local servers = {
-- pyright = {}, -- pyright = {},
-- rust_analyzer = {}, -- rust_analyzer = {},
-- tsserver = {}, -- tsserver = {},
-- html = { filetypes = { 'html', 'twig', 'hbs'} }, -- html = { filetypes = { 'html', 'blade' } },
lua_ls = { lua_ls = {
Lua = { Lua = {
@ -542,5 +542,13 @@ cmp.setup {
}, },
} }
-- The line beneath this is called `modeline`. See `:help modeline` -- MY KEYMAPS --
-- vim: ts=2 sts=2 sw=2 et
-- exit insert mode with lk
vim.keymap.set("i", "lk", "<esc>")
-- open Netrw
vim.keymap.set("n", "<leader>x", vim.cmd.Ex)
-- open fugitive in vertical split
vim.keymap.set('n', '<leader>gs', ':vertical G<CR>')