commit 78e63936f47bca01ae528ccfb9e7d98a370eb7fe
parent bb3298cf4a422ef5aa4ba104a0313730cb091000
Author: Tomáš Němec <nemec@medoro.org>
Date: Mon, 28 Jul 2025 17:38:31 +0200
update
Diffstat:
3 files changed, 220 insertions(+), 1 deletion(-)
diff --git a/after/plugin/git.lua b/after/plugin/git.lua
@@ -1,5 +1,5 @@
if vim.g.loaded_fugitive then
- vim.keymap.set('n', '<leader>gg', '<cmd>G<cr>', { desc = 'Git Status' })
+ vim.keymap.set('n', '<leader>gg', '<cmd>tab G<cr>', { desc = 'Git Status' })
vim.keymap.set('n', '<leader>G', function()
vim.cmd.G()
vim.cmd.only()
diff --git a/compiler/zig_build.vim b/compiler/zig_build.vim
@@ -0,0 +1,24 @@
+" Vim compiler file
+" Compiler: Zig Compiler
+" Upstream: https://github.com/ziglang/zig.vim
+
+if exists("current_compiler")
+ finish
+endif
+let current_compiler = "zig"
+
+let s:save_cpo = &cpo
+set cpo&vim
+
+CompilerSet makeprg=zig\ build\ $*
+
+" macros: /home/jason/src/my-language/src/main.zig:218:20
+CompilerSet efm=\ \ \ \ %m:\ %f:%l:%c
+"/home/jason/src/my-language/src/main.zig:359:22: error: unable to resolve inferred error set
+CompilerSet efm+=%f:%l:%c:\ %t%*[^:]:\ %m
+"[matches anything]
+CompilerSet efm+=%C%m
+
+let &cpo = s:save_cpo
+unlet s:save_cpo
+" vim: tabstop=8 shiftwidth=4 softtabstop=4 expandtab
diff --git a/lua/plugins2.lua b/lua/plugins2.lua
@@ -0,0 +1,195 @@
+vim.pack.add {
+ 'https://github.com/kyazdani42/nvim-web-devicons',
+ 'https://github.com/nvim-lua/plenary.nvim',
+ 'https://github.com/yioneko/nvim-type-fmt',
+ 'https://github.com/tweekmonster/startuptime.vim',
+ 'https://github.com/xxdavid/bez-diakritiky.vim',
+}
+
+-- leap
+vim.pack.add {
+ 'https://github.com/ggandor/leap.nvim',
+ 'https://github.com/ggandor/leap-spooky.nvim',
+ 'https://github.com/ggandor/flit.nvim',
+ 'https://github.com/rasulomaroff/telepath.nvim',
+}
+
+-- mini
+vim.pack.add {
+ 'echasnovski/mini.surround',
+ 'echasnovski/mini.ai',
+ 'echasnovski/mini.operators',
+ 'echasnovski/mini.animate',
+}
+
+vim.pack.add {
+ 'https://github.com/tpope/vim-repeat',
+ 'https://github.com/chaoren/vim-wordmotion',
+ 'https://github.com/romgrk/equal.operator',
+ 'https://github.com/godlygeek/tabular',
+ 'https://github.com/numToStr/Comment.nvim',
+}
+
+
+do
+ return
+end
+
+vim.cmd.packadd('paq-nvim')
+return require('paq') {
+ { 'savq/paq-nvim', opt = true },
+ 'kyazdani42/nvim-web-devicons',
+ 'nvim-lua/plenary.nvim',
+ 'yioneko/nvim-type-fmt',
+ 'tweekmonster/startuptime.vim',
+ 'xxdavid/bez-diakritiky.vim',
+
+ -- leap
+ 'ggandor/leap.nvim',
+ 'ggandor/leap-spooky.nvim',
+ 'ggandor/flit.nvim',
+ 'rasulomaroff/telepath.nvim',
+
+ -- mini
+ 'echasnovski/mini.surround',
+ 'echasnovski/mini.ai',
+ 'echasnovski/mini.operators',
+ 'echasnovski/mini.animate',
+
+ 'tpope/vim-repeat',
+ 'chaoren/vim-wordmotion',
+ 'romgrk/equal.operator',
+ { 'godlygeek/tabular', opt = true },
+ 'numToStr/Comment.nvim',
+ 'mbbill/undotree',
+ 'nvchad/nvim-colorizer.lua',
+ 'rainbowhxch/beacon.nvim',
+ 'elihunter173/dirbuf.nvim',
+ 'j-hui/fidget.nvim',
+ { 'lervag/vimtex', opt = true },
+ 'milisims/nvim-luaref',
+ -- { 'nvim-neorg/neorg', requires = { 'nvim-lua/plenary.nvim' } }
+ 'mickael-menu/zk-nvim',
+ 'kevinhwang91/nvim-bqf',
+ 'stevearc/quicker.nvim',
+ 'shortcuts/no-neck-pain.nvim',
+ 'nagy135/typebreak.nvim',
+ { 'lewis6991/gitsigns.nvim', requires = { 'nvim-lua/plenary.nvim' } },
+ 'sindrets/diffview.nvim',
+ 'tpope/vim-fugitive',
+ 'ThePrimeagen/git-worktree.nvim',
+ 'rhysd/conflict-marker.vim',
+ { 'rest-nvim/rest.nvim', requires = { 'nvim-lua/plenary.nvim' }, opt = true },
+ 'tikhomirov/vim-glsl',
+ 'windwp/nvim-ts-autotag',
+ 'baskerville/vim-sxhkdrc',
+ 'mfussenegger/nvim-jdtls',
+
+ -- cmp
+ 'tzachar/cmp-ai',
+ 'dmitmel/cmp-cmdline-history',
+ 'f3fora/cmp-spell',
+ 'hrsh7th/cmp-buffer',
+ 'hrsh7th/cmp-calc',
+ 'hrsh7th/cmp-cmdline',
+ 'hrsh7th/cmp-nvim-lsp',
+ 'hrsh7th/cmp-nvim-lsp-signature-help',
+ 'hrsh7th/cmp-nvim-lua',
+ 'hrsh7th/cmp-path',
+ 'petertriho/cmp-git',
+ 'ray-x/cmp-treesitter',
+ 'rcarriga/cmp-dap',
+ 'tamago324/cmp-zsh',
+ 'uga-rosa/cmp-dictionary',
+ 'hrsh7th/nvim-cmp',
+
+ -- get rid of this
+ 'stevearc/dressing.nvim',
+ 'rcarriga/nvim-notify',
+
+ -- lsp
+ 'neovim/nvim-lspconfig',
+ 'williamboman/mason.nvim',
+ 'b0o/schemastore.nvim',
+ -- can we get rid of this?
+ 'folke/lazydev.nvim',
+ 'stevearc/conform.nvim',
+ 'monkoose/neocodeium',
+
+ -- dap
+ 'mfussenegger/nvim-dap',
+ 'leoluz/nvim-dap-go',
+ 'nvim-neotest/nvim-nio',
+ 'rcarriga/nvim-dap-ui',
+ 'theHamsta/nvim-dap-virtual-text',
+ 'mxsdev/nvim-dap-vscode-js',
+ {
+ 'microsoft/vscode-js-debug',
+ opt = true,
+ build = function()
+ local dockerfile = vim.fn.tmpname()
+ vim.fn.writefile({
+ 'FROM node AS build',
+ 'WORKDIR /src',
+ 'COPY . .',
+ 'RUN npm install --legacy-peer-deps && npx gulp vsDebugServerBundle',
+ 'FROM scratch',
+ 'COPY --from=build /src/dist /',
+ }, dockerfile, "a")
+
+ local err = {};
+ local result = vim.system(
+ { 'docker', 'buildx', 'build', '--progress', 'plain', '--output', './out', '-f', dockerfile, '.' },
+ {
+ cwd = vim.fn.stdpath('data') .. '/site/pack/paqs/opt/vscode-js-debug',
+ stderr = function(_, data)
+ for line in data:gmatch '[^\n]+' do
+ table.insert(err, line)
+ end
+ end
+ }
+ ):wait()
+
+ os.remove(dockerfile)
+ if result.code ~= 0 then
+ vim.fn.writefile(err, vim.fn.stdpath('state') .. '/paq.log', "a")
+ vim.cmd.throw()
+ end
+ end,
+ },
+
+ -- treesitter
+ 'nvim-treesitter/nvim-treesitter',
+ 'nvim-treesitter/nvim-treesitter-textobjects',
+ 'nvim-treesitter/nvim-treesitter-refactor',
+ -- 'nvim-treesitter/nvim-treesitter-context',
+ 'nvim-treesitter/playground',
+ 'JoosepAlviste/nvim-ts-context-commentstring',
+
+ 'cshuaimin/ssr.nvim',
+ 'ThePrimeagen/refactoring.nvim',
+
+ -- telescope
+ {
+ 'nvim-telescope/telescope.nvim',
+ requires = { 'nvim-lua/popup.nvim', 'nvim-lua/plenary.nvim', 'kyazdani42/nvim-web-devicons' },
+ },
+ { 'nvim-telescope/telescope-fzf-native.nvim', build = 'make' },
+ 'nvim-telescope/telescope-dap.nvim',
+
+ { 'aaronhallaert/advanced-git-search.nvim', requires = { 'tpope/vim-fugitive' } },
+ 'habamax/vim-godot',
+ 'codethread/qmk.nvim',
+ 'elkowar/yuck.vim',
+ 'GenesisTMS/trans.nvim',
+ { url = 'https://gitlab.com/gtms/dart-tools.nvim' },
+ -- use '/home/tms/dev/nvim/plugins/dart-tools.nvim'
+ -- { url = 'git@gitlab.com:gtms/difftastic.nvim' },
+
+ -- dadbot
+ 'tpope/vim-dadbod',
+ 'kristijanhusak/vim-dadbod-ui',
+ 'kristijanhusak/vim-dadbod-completion',
+
+ 'michaelrommel/nvim-silicon', -- code image
+}