diff --git a/lazy-lock.json b/lazy-lock.json new file mode 100644 index 0000000..f180adf --- /dev/null +++ b/lazy-lock.json @@ -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" } +} \ No newline at end of file diff --git a/lua/juliuswaldmann/lazynvim.lua b/lua/juliuswaldmann/lazynvim.lua index 192841c..1827744 100644 --- a/lua/juliuswaldmann/lazynvim.lua +++ b/lua/juliuswaldmann/lazynvim.lua @@ -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", "sl", function() + possession.list() + end) + vim.keymap.set("n", "sn", function() + possession.new() + end) + vim.keymap.set("n", "su", function() + possession.update() + end) + vim.keymap.set("n", "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' diff --git a/lua/juliuswaldmann/remap.lua b/lua/juliuswaldmann/remap.lua index bb0286b..82dbfc4 100644 --- a/lua/juliuswaldmann/remap.lua +++ b/lua/juliuswaldmann/remap.lua @@ -34,7 +34,6 @@ vim.keymap.set("n", "s", [[:%s/\<\>//gI< vim.keymap.set("n", "x", "!chmod +x %", { silent = true }) vim.keymap.set("n", "vpp", "e ~/.dotfiles/nvim/.config/nvim/lua/theprimeagen/packer.lua"); -vim.keymap.set("n", "mr", "CellularAutomaton make_it_rain"); vim.keymap.set("n", "", function() vim.cmd("so") @@ -49,10 +48,10 @@ vim.api.nvim_set_keymap( ) --panels -vim.keymap.set('n', '', '', {desc = 'Move to window below'}) -vim.keymap.set('n', '', '', {desc = 'Move to window above'}) -vim.keymap.set('n', '', '', {desc = 'Move to window to the right'}) -vim.keymap.set('n', '', '', {desc = 'Move to window to the left'}) +vim.keymap.set('n', '', 'j', {desc = 'Move to window below'}) +vim.keymap.set('n', '', 'k', {desc = 'Move to window above'}) +vim.keymap.set('n', '', 'l', {desc = 'Move to window to the right'}) +vim.keymap.set('n', '', 'h', {desc = 'Move to window to the left'}) --terminal ESC vim.keymap.set('t', '', [[]],{noremap=true}) diff --git a/lua/juliuswaldmann/set.lua b/lua/juliuswaldmann/set.lua index 7d1a224..ef41b27 100644 --- a/lua/juliuswaldmann/set.lua +++ b/lua/juliuswaldmann/set.lua @@ -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