diff --git a/.config/nvim/init.lua b/.config/nvim/init.lua index 3624e5d..9fe4233 100644 --- a/.config/nvim/init.lua +++ b/.config/nvim/init.lua @@ -7,7 +7,6 @@ set.softtabstop = 2 set.expandtab = true set.number = true set.relativenumber = true ---set.mouse='r' --- Plugins local lazypath = vim.fn.stdpath("data") .. "/lazy/lazy.nvim" @@ -25,7 +24,6 @@ vim.opt.rtp:prepend(lazypath) vim.g.mapleader = " " -- Make sure to set `mapleader` before lazy so your mappings are correct require("lazy").setup({ - "folke/which-key.nvim", { "ellisonleao/gruvbox.nvim", priority = 1000 , config = true }, { 'nvim-telescope/telescope.nvim', tag = '0.1.4', @@ -56,6 +54,18 @@ require("lazy").setup({ "chaoren/vim-wordmotion", "tpope/vim-fugitive", "tpope/vim-surround", + "tpope/vim-rails", + "rrethy/nvim-treesitter-endwise", + "Eandrju/cellular-automaton.nvim", + "romainl/vim-cool", + { + "folke/zen-mode.nvim", + opts = { + plugins = { + tmux = { enabled = true }, + } + } + } }) require("tsv.remap") diff --git a/.config/nvim/lazy-lock.json b/.config/nvim/lazy-lock.json index 0d35377..2d72b2e 100644 --- a/.config/nvim/lazy-lock.json +++ b/.config/nvim/lazy-lock.json @@ -1,24 +1,27 @@ { + "cellular-automaton.nvim": { "branch": "main", "commit": "b7d056dab963b5d3f2c560d92937cb51db61cb5b" }, "cmp-lsp.nvim": { "branch": "main", "commit": "60e1e16308c862f678ea02b8430befa20c8fda6c" }, "cmp-treesitter": { "branch": "master", "commit": "b8bc760dfcc624edd5454f0982b63786a822eed9" }, "codeium.vim": { "branch": "main", "commit": "1efe2a2cdf516094bdb211aa8a1d45ef01836207" }, "git-messenger.vim": { "branch": "master", "commit": "8a61bdfa351d4df9a9118ee1d3f45edbed617072" }, - "gruvbox.nvim": { "branch": "main", "commit": "477c62493c82684ed510c4f70eaf83802e398898" }, + "gruvbox.nvim": { "branch": "main", "commit": "517b012757fbe7a4d6e507baf5cc75837e62734f" }, "lazy.nvim": { "branch": "main", "commit": "96584866b9c5e998cbae300594d0ccfd0c464627" }, - "mason-lspconfig.nvim": { "branch": "main", "commit": "6eb8cae80f2e4322ec82cd9f8fa423f6d1eb02c3" }, + "mason-lspconfig.nvim": { "branch": "main", "commit": "faeb361507aa1ef1b0e5645781e2aa0d36a4aa84" }, "mason.nvim": { "branch": "main", "commit": "41e75af1f578e55ba050c863587cffde3556ffa6" }, "nvim-cmp": { "branch": "main", "commit": "0b751f6beef40fd47375eaf53d3057e0bfa317e4" }, "nvim-dap": { "branch": "master", "commit": "9d81c11fd185a131f81841e64941859305f6c42d" }, - "nvim-dap-ruby": { "branch": "main", "commit": "fc15c7d50e557379e13f3a825bc58adcc7323cc3" }, "nvim-dap-ui": { "branch": "master", "commit": "34160a7ce6072ef332f350ae1d4a6a501daf0159" }, - "nvim-lspconfig": { "branch": "master", "commit": "b0852218bc5fa6514a71a9da6d5cfa63a263c83d" }, - "nvim-tree.lua": { "branch": "master", "commit": "a2aaf8b430c11af36b869cf1c0ad2f7c8ceeaf2c" }, - "nvim-treesitter": { "branch": "master", "commit": "04a9a90c2a60c86aa9451c539586326b337b03e5" }, - "nvim-web-devicons": { "branch": "master", "commit": "47103b80c38c59f7a1b5408c232b92bf5d018651" }, + "nvim-lspconfig": { "branch": "master", "commit": "29939f6f07bc0f3b9fc563fbfbee06ac88c8c439" }, + "nvim-tree.lua": { "branch": "master", "commit": "80cfeadf179d5cba76f0f502c71dbcff1b515cd8" }, + "nvim-treesitter": { "branch": "master", "commit": "73287b794d428843f20f9ae004bef2ce67ab3dbc" }, + "nvim-treesitter-endwise": { "branch": "master", "commit": "4c344ffc8d54d7e1ba2cefaaa2c10ea93aa1cc2d" }, + "nvim-web-devicons": { "branch": "master", "commit": "3523d6e6d40ab11fd66c1b2732b3d6b60affa951" }, "plenary.nvim": { "branch": "master", "commit": "50012918b2fc8357b87cff2a7f7f0446e47da174" }, "telescope.nvim": { "branch": "master", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" }, + "vim-cool": { "branch": "master", "commit": "662e7b11064cbeedad17c45d2fe926e78d3cd0b6" }, "vim-fugitive": { "branch": "master", "commit": "46eaf8918b347906789df296143117774e827616" }, + "vim-rails": { "branch": "master", "commit": "1ad9663ce31e8c08134849d04184cda94bb42aba" }, "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" }, "vim-wordmotion": { "branch": "master", "commit": "81d9bd298376ab0dc465c85d55afa4cb8d5f47a1" }, - "which-key.nvim": { "branch": "main", "commit": "4433e5ec9a507e5097571ed55c02ea9658fb268a" } + "zen-mode.nvim": { "branch": "main", "commit": "50e2e2a36cc97847d9ab3b1a3555ba2ef6839b50" } } \ No newline at end of file diff --git a/.config/nvim/lua/tsv/remap.lua b/.config/nvim/lua/tsv/remap.lua index f77e55b..3a3ebf9 100644 --- a/.config/nvim/lua/tsv/remap.lua +++ b/.config/nvim/lua/tsv/remap.lua @@ -44,8 +44,11 @@ vim.keymap.set('n', 'di', require('dap').step_into) vim.keymap.set('n', 'do', require('dap').step_over) vim.keymap.set('n', 'dr', require('dap').repl.open) vim.keymap.set('n', 'dx', require('dap').terminate) - -vim.keymap.set('n', 'e', vim.diagnostic.open_float) +-- Zen mode +vim.keymap.set('n', 'zz', require('zen-mode').toggle) +-- AAAARGH +vim.keymap.set("n", "fml", "CellularAutomaton make_it_rain") +vim.keymap.set("n", "cnw", "CellularAutomaton game_of_life") -- Custom Telescope commands for Rails vim.keymap.set('n', 'trj', function()