]> localhost Git - nvim.git/commitdiff
feat: coisas
authorJJ <[email protected]>
Fri, 28 Feb 2025 01:52:13 +0000 (21:52 -0400)
committerJJ <[email protected]>
Fri, 28 Feb 2025 01:52:13 +0000 (21:52 -0400)
init.lua
lazy-lock.json

index f3f1adda4e5bda5b05fd6f851cb0f9decc34e004..5fee1970bc1ff329557cc776c88e65d0fd6a9639 100644 (file)
--- a/init.lua
+++ b/init.lua
@@ -7,16 +7,14 @@ vim.opt.tabstop        = 2
 vim.opt.softtabstop    = 2
 vim.opt.shiftwidth     = 2
 vim.opt.expandtab      = true
-vim.opt.number         = false
-vim.opt.relativenumber = false
+vim.opt.number         = true
+vim.opt.relativenumber = true
 
 vim.opt.foldmethod = "manual"
 vim.opt.foldenable = true
 
 vim.opt.cursorline = true
 
-vim.g.netrw_liststyle = 1
-
 vim.cmd.colorscheme('codeclocks')
 
 local tab_next = true
@@ -61,6 +59,19 @@ vim.opt.rtp:prepend(lazypath)
 require("lazy").setup({
   { 'MeanderingProgrammer/render-markdown.nvim', opts = {} },
   { "ibhagwan/fzf-lua"  },
+  {
+      "kawre/leetcode.nvim",
+      build = ":TSUpdate html", -- if you have `nvim-treesitter` installed
+      dependencies = {
+          "nvim-telescope/telescope.nvim",
+          "nvim-lua/plenary.nvim",
+          "MunifTanjim/nui.nvim",
+      },
+      opts = {
+        arg = "leet",
+        lang = "rust",
+      },
+  },
   {
     "NeogitOrg/neogit",
     dependencies = {
@@ -174,6 +185,8 @@ require("lazy").setup({
       -- Manual setup
       vim.g.zig_fmt_autosave = 0
 
+      lspconfig['rust_analyzer'].setup { on_attach = lsp_keymaps_on_attach }
+
       lspconfig.lua_ls.setup {
         on_attach = lsp_keymaps_on_attach,
         settings = {
@@ -216,23 +229,22 @@ if vim.g.neovide then
   vim.keymap.set('n', '<leader>ni', function()
     vim.system({"neovide"}, {detach = true})
   end)
+  vim.keymap.set('n', '<leader>-', function()
+    font_size = font_size-vim.v.count1
+    if font_size < min_font_size then font_size = min_font_size end
+    vim.o.guifont = font()
+  end)
+  vim.keymap.set('n', '<leader>=', function()
+    font_size = font_size+vim.v.count1
+    if font_size > max_font_size then font_size = max_font_size end
+    vim.o.guifont = font()
+  end)
 end
 
 -- Utils
 vim.keymap.set('n', '<leader>H', function() vim.cmd [[nohl]] end)
 vim.keymap.set('n', '<leader>`', function() vim.cmd [[Neogit]] end)
 
-vim.keymap.set('n', '<leader>-', function()
-  font_size = font_size-vim.v.count1
-  if font_size < min_font_size then font_size = min_font_size end
-  vim.o.guifont = font()
-end)
-vim.keymap.set('n', '<leader>=', function()
-  font_size = font_size+vim.v.count1
-  if font_size > max_font_size then font_size = max_font_size end
-  vim.o.guifont = font()
-end)
-
 vim.keymap.set('n', '<leader>[', function()
   if (vim.api.nvim_get_option_value("number", {})) then
     vim.api.nvim_set_option_value("number", false, {})
index c1ec748d07306228378774617c6e9f687b15c53f..f0570d3603feeecb791a078720abd91e07d10fac 100644 (file)
@@ -1,12 +1,15 @@
 {
   "diffview.nvim": { "branch": "main", "commit": "4516612fe98ff56ae0415a259ff6361a89419b0a" },
   "fzf-lua": { "branch": "main", "commit": "2a7eb32871a131e24021dd1756865e475fe7e274" },
-  "lazy.nvim": { "branch": "main", "commit": "7967abe55752aa90532e6bb4bd4663fe27a264cb" },
+  "lazy.nvim": { "branch": "main", "commit": "7e6c863bc7563efbdd757a310d17ebc95166cef3" },
+  "leetcode.nvim": { "branch": "master", "commit": "db7e1cd6b9191b34b4c1f2f96e4e3949cde9f951" },
   "mason-lspconfig.nvim": { "branch": "main", "commit": "43894adcf10bb1190c2184bd7c1750e8ea2b3dce" },
   "mason.nvim": { "branch": "main", "commit": "e2f7f9044ec30067bc11800a9e266664b88cda22" },
   "neogit": { "branch": "master", "commit": "89d13fb9898619774d359a3900959181d60dd02f" },
+  "nui.nvim": { "branch": "main", "commit": "53e907ffe5eedebdca1cd503b00aa8692068ca46" },
   "nvim-lspconfig": { "branch": "master", "commit": "f012c1b176f0e3c71f40eb309bdec0316689462e" },
   "nvim-treesitter": { "branch": "master", "commit": "37427012d1c77c544356bfff0c9acc88fd3256bc" },
   "plenary.nvim": { "branch": "master", "commit": "2d9b06177a975543726ce5c73fca176cedbffe9d" },
-  "render-markdown.nvim": { "branch": "main", "commit": "7f0143e9adf7140c8e3fa33a5bdf193d7a8f0429" }
+  "render-markdown.nvim": { "branch": "main", "commit": "7f0143e9adf7140c8e3fa33a5bdf193d7a8f0429" },
+  "telescope.nvim": { "branch": "master", "commit": "2eca9ba22002184ac05eddbe47a7fe2d5a384dfc" }
 }