new keymaps: best of primeagen
This commit is contained in:
parent
ebd899d3d3
commit
ea086c2bb5
34
init.lua
34
init.lua
|
@ -190,6 +190,27 @@ vim.keymap.set('n', '<C-l>', '<C-w><C-l>', { desc = 'Move focus to the right win
|
|||
vim.keymap.set('n', '<C-j>', '<C-w><C-j>', { desc = 'Move focus to the lower window' })
|
||||
vim.keymap.set('n', '<C-k>', '<C-w><C-k>', { desc = 'Move focus to the upper window' })
|
||||
|
||||
-- Meine eigenen Keymaps und Options
|
||||
--
|
||||
vim.opt.shiftwidth = 4
|
||||
vim.opt.softtabstop = 4
|
||||
vim.opt.expandtab = true
|
||||
--
|
||||
vim.keymap.set("n", "<leader>v", "<C-v>")
|
||||
-- nach komma einen zeilenumruch einfuegen
|
||||
vim.keymap.set('n', '<leader>ii', 'f,a<Cr><ESC>')
|
||||
vim.keymap.set('n', '<leader>o', 'o<ESC>')
|
||||
vim.keymap.set('n', '<leader>O', 'O<ESC>')
|
||||
vim.keymap.set("n", "<C-d>", "<C-d>zz")
|
||||
vim.keymap.set("n", "<C-u>", "<C-u>zz")
|
||||
-- visual block
|
||||
vim.keymap.set("n", "<leader>v", "<C-v>")
|
||||
--
|
||||
vim.keymap.set("n", "<leader>bn", ":bNext<CR>")
|
||||
-- besten keymaps aller zeiten
|
||||
vim.keymap.set("v", "J", ":m '>+1<CR>gv=gv")
|
||||
vim.keymap.set("v", "K", ":m '<-2<CR>gv=gv")
|
||||
|
||||
-- [[ Basic Autocommands ]]
|
||||
-- See `:help lua-guide-autocommands`
|
||||
|
||||
|
@ -644,12 +665,12 @@ require('lazy').setup({
|
|||
-- `friendly-snippets` contains a variety of premade snippets.
|
||||
-- See the README about individual language/framework/plugin snippets:
|
||||
-- https://github.com/rafamadriz/friendly-snippets
|
||||
-- {
|
||||
-- 'rafamadriz/friendly-snippets',
|
||||
-- config = function()
|
||||
-- require('luasnip.loaders.from_vscode').lazy_load()
|
||||
-- end,
|
||||
-- },
|
||||
{
|
||||
'rafamadriz/friendly-snippets',
|
||||
config = function()
|
||||
require('luasnip.loaders.from_vscode').lazy_load()
|
||||
end,
|
||||
},
|
||||
},
|
||||
},
|
||||
'saadparwaiz1/cmp_luasnip',
|
||||
|
@ -837,6 +858,7 @@ require('lazy').setup({
|
|||
-- Uncomment the following line and add your plugins to `lua/custom/plugins/*.lua` to get going.
|
||||
-- For additional information, see `:help lazy.nvim-lazy.nvim-structuring-your-plugins`
|
||||
{ import = 'custom.plugins' },
|
||||
{ import = 'custom.functions' },
|
||||
{ import = 'basic.plugins' },
|
||||
}, {
|
||||
ui = {
|
||||
|
|
Loading…
Reference in New Issue