From d32ca6427abf27c716fa700956d512a454e72158 Mon Sep 17 00:00:00 2001 From: flin16 Date: Sat, 24 May 2025 21:35:43 -0500 Subject: [PATCH] Auto commit --- lazy-lock.json | 1 + lazyvim.json | 1 + lua/config/keymaps.lua | 9 +++++++++ lua/config/options.lua | 2 -- lua/plugins/example.lua | 29 ++++++++++++++++++----------- 5 files changed, 29 insertions(+), 13 deletions(-) diff --git a/lazy-lock.json b/lazy-lock.json index bf688c9..c41bd18 100644 --- a/lazy-lock.json +++ b/lazy-lock.json @@ -44,6 +44,7 @@ "trouble.nvim": { "branch": "main", "commit": "85bedb7eb7fa331a2ccbecb9202d8abba64d37b3" }, "ts-comments.nvim": { "branch": "main", "commit": "1bd9d0ba1d8b336c3db50692ffd0955fe1bb9f0c" }, "venv-selector.nvim": { "branch": "regexp", "commit": "c677caa1030808a9f90092e522de7cc20c1390dd" }, + "vimtex": { "branch": "master", "commit": "08760834ce04903deb6f8760e61c11cf6f6b2f89" }, "which-key.nvim": { "branch": "main", "commit": "370ec46f710e058c9c1646273e6b225acf47cbed" }, "yanky.nvim": { "branch": "main", "commit": "04775cc6e10ef038c397c407bc17f00a2f52b378" } } diff --git a/lazyvim.json b/lazyvim.json index 27d9c04..b01b9cf 100644 --- a/lazyvim.json +++ b/lazyvim.json @@ -4,6 +4,7 @@ "lazyvim.plugins.extras.coding.yanky", "lazyvim.plugins.extras.editor.refactoring", "lazyvim.plugins.extras.lang.python", + "lazyvim.plugins.extras.lang.tex", "lazyvim.plugins.extras.test.core" ], "install_version": 8, diff --git a/lua/config/keymaps.lua b/lua/config/keymaps.lua index 57b9fa1..3322221 100644 --- a/lua/config/keymaps.lua +++ b/lua/config/keymaps.lua @@ -15,6 +15,9 @@ map_nv("", '"_d', { desc = "Delete selection with Del" }) map_all_mode("", function() require("dap").continue() end, { desc = "DAP: Continue" }) +map_all_mode("", function() + require("dap").run_last() +end, { desc = "DAP: Use last config" }) map_all_mode("", function() require("dap").step_over() end, { desc = "DAP: Step Over" }) @@ -27,6 +30,12 @@ end, { desc = "DAP: Step Out" }) vim.keymap.set("n", "\\b", function() require("dap").toggle_breakpoint() end, { desc = "DAP: Toggle Breakpoint" }) + +--Git settings +-- vim.keymap.set("n", "ga", function() +-- require("Snacks"). +-- end, { desc = "Git: Find files" }) + if vim.g.neovide then vim.keymap.set("n", "", ":w") -- Save vim.keymap.set("i", "", ":w") diff --git a/lua/config/options.lua b/lua/config/options.lua index ade47d5..e26569f 100644 --- a/lua/config/options.lua +++ b/lua/config/options.lua @@ -3,8 +3,6 @@ -- Add any additional options here vim.o.clipboard = "" vim.o.guifont = "Monaco:h16" -vim.cmd("colorscheme molokai") - local dap = require("dap") dap.adapters.python = { diff --git a/lua/plugins/example.lua b/lua/plugins/example.lua index 3f61196..18ba22f 100644 --- a/lua/plugins/example.lua +++ b/lua/plugins/example.lua @@ -1,14 +1,29 @@ -- since this is just an example spec, don't actually load anything here and return an empty spec -- stylua: ignore return { - 'tomasr/molokai', -- colorscheme + { + 'tomasr/molokai', -- colorscheme + config = function() + vim.cmd.colorscheme("molokai") + end, + }, + { + "lervag/vimtex", + lazy = false, -- we don't want to lazy load VimTeX + init = function() + vim.g.vimtex_view_method = "skim" + vim.g.vimtex_view_skim_sync = 1 + vim.g.vimtex_view_skim_activate = 1 + end + }, {"mfussenegger/nvim-lint", opts = { linters_by_ft = { sh = { "shellcheck" }, + tex = { "chktex" }, }, }, - config = function(_, opts) + config = function() local lint = require("lint") lint.linters.ruff.args = { "--ignore=E401", } end @@ -19,6 +34,7 @@ return { python = { "black" }, sh = { "shfmt" }, lua = { "stylua" }, + tex = { "latexindent" }, }, }}, {"neovim/nvim-lspconfig", @@ -38,15 +54,6 @@ return { require("dap-python").setup("python") end, }, - { - "github/copilot.vim", - config = function() - vim.g.copilot_no_tab_map = false - vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) - -- Use a different keybinding for accepting suggestions, for terminal mode. - vim.api.nvim_set_keymap("i", "", 'copilot#Accept("")', { silent = true, expr = true }) - end, - }, { "amitds1997/remote-nvim.nvim", dependencies = {