This commit is contained in:
Julius Waldmann 2024-05-15 12:40:58 +02:00
parent cc795c2dcc
commit 0abf129bfb
4 changed files with 58 additions and 6 deletions

27
lazy-lock.json Normal file
View File

@ -0,0 +1,27 @@
{
"LuaSnip": { "branch": "master", "commit": "b152822e1a4bafb6bdf11a16cc26525cbd95ee00" },
"cmp-nvim-lsp": { "branch": "main", "commit": "5af77f54de1b16c34b23cba810150689a3a90312" },
"conform.nvim": { "branch": "master", "commit": "6dc1603ea408f476a57937bbeaf7f86520a21a98" },
"cutlass.nvim": { "branch": "main", "commit": "1ac7e4b53d79410be52a9e464d44c60556282b3e" },
"fzf-lua": { "branch": "main", "commit": "9c953dfa7650191d892800333d187f3439e01afd" },
"harpoon": { "branch": "master", "commit": "ccae1b9bec717ae284906b0bf83d720e59d12b91" },
"instant.nvim": { "branch": "master", "commit": "294b6d08143b3db8f9db7f606829270149e1a786" },
"lazy.nvim": { "branch": "main", "commit": "d3974346b6cef2116c8e7b08423256a834cb7cbc" },
"lsp-zero.nvim": { "branch": "v3.x", "commit": "d1114ca5ff28ffcd0bc2a3fdd4c13019b1c41812" },
"lualine.nvim": { "branch": "master", "commit": "0a5a66803c7407767b799067986b4dc3036e1983" },
"mason-lspconfig.nvim": { "branch": "main", "commit": "05744f0f1967b5757bd05c08df4271ab8ec990aa" },
"mason.nvim": { "branch": "main", "commit": "751b1fcbf3d3b783fcf8d48865264a9bcd8f9b10" },
"neovim": { "branch": "main", "commit": "17b466e79479758b332a3cac12544a3ad2be6241" },
"nvim-autopairs": { "branch": "master", "commit": "14e97371b2aab6ee70054c1070a123dfaa3e217e" },
"nvim-cmp": { "branch": "main", "commit": "cd2cf0c124d3de577fb5449746568ee8e601afc8" },
"nvim-lspconfig": { "branch": "master", "commit": "a3d9395455f2b2e3b50a0b0f37b8b4c23683f44a" },
"nvim-possession": { "branch": "main", "commit": "253e52fe26f2816acae68e7e0ced9d89adf3f85a" },
"nvim-treesitter": { "branch": "master", "commit": "1be5aa99e3e0e4a36c31fa7066dcf46a4e0142dd" },
"nvim-web-devicons": { "branch": "master", "commit": "5b9067899ee6a2538891573500e8fd6ff008440f" },
"plenary.nvim": { "branch": "master", "commit": "08e301982b9a057110ede7a735dd1b5285eb341f" },
"telescope-file-browser.nvim": { "branch": "master", "commit": "4d5fd21bae12ee6e9a79232e1c377f43c419d0c5" },
"telescope.nvim": { "branch": "master", "commit": "fac83a556e7b710dc31433dec727361ca062dbe9" },
"undotree": { "branch": "master", "commit": "56c684a805fe948936cda0d1b19505b84ad7e065" },
"vim-fugitive": { "branch": "master", "commit": "ce882460cf3db12e99f8bf579cbf99e331f6dd4f" },
"vim-vinegar": { "branch": "master", "commit": "bb1bcddf43cfebe05eb565a84ab069b357d0b3d6" }
}

View File

@ -94,7 +94,7 @@ return lazy.setup({
{
"gbprod/cutlass.nvim",
opts = {
cut_key = m,
cut_key = "m",
override_del = nil,
exclude = {},
registers = {
@ -104,6 +104,28 @@ return lazy.setup({
},
}
},
{
"gennaro-tedesco/nvim-possession",
dependencies = {
"ibhagwan/fzf-lua",
},
config = true,
init = function()
local possession = require("nvim-possession")
vim.keymap.set("n", "<leader>sl", function()
possession.list()
end)
vim.keymap.set("n", "<leader>sn", function()
possession.new()
end)
vim.keymap.set("n", "<leader>su", function()
possession.update()
end)
vim.keymap.set("n", "<leader>sd", function()
possession.delete()
end)
end,
}
-- Uncomment these lines if you want to use the plugins
-- use 'nvim-tree/nvim-tree.lua'
-- use 'nvim-tree/nvim-web-devicons'

View File

@ -34,7 +34,6 @@ vim.keymap.set("n", "<leader>s", [[:%s/\<<C-r><C-w>\>/<C-r><C-w>/gI<Left><Left><
vim.keymap.set("n", "<leader>x", "<cmd>!chmod +x %<CR>", { silent = true })
vim.keymap.set("n", "<leader>vpp", "<cmd>e ~/.dotfiles/nvim/.config/nvim/lua/theprimeagen/packer.lua<CR>");
vim.keymap.set("n", "<leader>mr", "<cmd>CellularAutomaton make_it_rain<CR>");
vim.keymap.set("n", "<leader><leader>", function()
vim.cmd("so")
@ -49,10 +48,10 @@ vim.api.nvim_set_keymap(
)
--panels
vim.keymap.set('n', '<C-j>', '<C-W><C-J>', {desc = 'Move to window below'})
vim.keymap.set('n', '<C-k>', '<C-W><C-K>', {desc = 'Move to window above'})
vim.keymap.set('n', '<C-l>', '<C-W><C-L>', {desc = 'Move to window to the right'})
vim.keymap.set('n', '<C-h>', '<C-W><C-H>', {desc = 'Move to window to the left'})
vim.keymap.set('n', '<C-j>', '<C-w>j', {desc = 'Move to window below'})
vim.keymap.set('n', '<C-k>', '<C-w>k', {desc = 'Move to window above'})
vim.keymap.set('n', '<C-l>', '<C-w>l', {desc = 'Move to window to the right'})
vim.keymap.set('n', '<C-h>', '<C-w>h', {desc = 'Move to window to the left'})
--terminal ESC
vim.keymap.set('t', '<Esc>', [[<C-\><C-n>]],{noremap=true})

View File

@ -31,3 +31,7 @@ vim.opt.updatetime = 50
vim.opt.colorcolumn = "80"
vim.opt.clipboard = "unnamedplus"
vim.opt.foldmethod = "expr"
vim.opt.foldexpr = "nvim_treesitter#foldexpr()"
vim.opt.foldlevel = 999