@@ -24,59 +24,7 @@ local function inject_all(specs)
2424end
2525
2626return inject_all ({
27- {
28- " sourcegraph/amp.nvim" ,
29- branch = " main" ,
30- lazy = false ,
31- opts = { auto_start = false , log_level = " info" },
32- },
33- {
34- " zbirenbaum/copilot.lua" ,
35- cmd = " Copilot" ,
36- event = " InsertEnter" ,
37- keys = {
38- {
39- " <leader>oa" ,
40- function ()
41- require (" copilot.suggestion" ).toggle_auto_trigger ()
42- end ,
43- desc = " toggle AI completion" ,
44- },
45- },
46- opts = {
47- server = {
48- type = " binary" ,
49- custom_server_filepath = " /etc/profiles/per-user/danieln/bin/copilot-language-server" ,
50- },
51- suggestion = {
52- trigger_on_accept = false ,
53- auto_trigger = true ,
54- keymap = {
55- accept = " <cr>" ,
56- accept_word = " <s-cr>" ,
57- accept_line = false ,
58- next = " <c-cr>" ,
59- prev = false ,
60- dismiss = " <space>" ,
61- },
62- },
63- },
64- config = function (_ , opts )
65- require (" copilot" ).setup (opts )
66- vim .api .nvim_create_autocmd (" User" , {
67- pattern = " BlinkCmpMenuOpen" ,
68- callback = function ()
69- vim .b .copilot_suggestion_hidden = true
70- end ,
71- })
72- vim .api .nvim_create_autocmd (" User" , {
73- pattern = " BlinkCmpMenuClose" ,
74- callback = function ()
75- vim .b .copilot_suggestion_hidden = false
76- end ,
77- })
78- end ,
79- },
27+
8028 {
8129 " coder/claudecode.nvim" ,
8230 dependencies = {
@@ -114,12 +62,12 @@ return inject_all({
11462 { " <leader>ad" , " <cmd>ClaudeCodeDiffDeny<cr>" , desc = " Deny diff" },
11563 },
11664 },
65+
11766 {
11867 " saghen/blink.cmp" ,
11968 lazy = false , -- it handles itself and is an integral part anyhow
12069 dependencies = {
12170 { " rafamadriz/friendly-snippets" },
122- { " zbirenbaum/copilot.lua" },
12371 },
12472 opts = {
12573 appearance = {
@@ -203,9 +151,6 @@ return inject_all({
203151 },
204152 sources = {
205153 default = { " lsp" , " path" , " snippets" , " buffer" , " lazydev" },
206- per_filetype = {
207- codecompanion = { " codecompanion" },
208- },
209154 providers = {
210155 lsp = {
211156 fallbacks = { " lazydev" },
@@ -285,6 +230,7 @@ return inject_all({
285230
286231 {
287232 " sindrets/diffview.nvim" ,
233+ enabled = false ,
288234 cmd = { " DiffviewOpen" , " DiffviewPR" },
289235 keys = {
290236 {
@@ -764,7 +710,7 @@ return inject_all({
764710 opts = {
765711 view = {
766712 style = " sign" ,
767- signs = { add = " ┃ " , change = " ┃ " , delete = " _" },
713+ signs = { add = " │ " , change = " │ " , delete = " _" },
768714 priority = 20 ,
769715 },
770716 mappings = {
@@ -793,6 +739,20 @@ return inject_all({
793739 desc = " browse files" ,
794740 },
795741 },
742+ config = function (_ , opts )
743+ require (" mini.files" ).setup (opts )
744+ vim .api .nvim_create_autocmd (" User" , {
745+ pattern = " MiniFilesBufferCreate" ,
746+ callback = function (args )
747+ local buf_id = args .data .buf_id
748+ vim .keymap .set (" n" , " <left>" , MiniFiles .go_out , { buffer = buf_id })
749+ vim .keymap .set (" n" , " <right>" , function ()
750+ MiniFiles .go_in ({ close_on_file = true })
751+ end , { buffer = buf_id })
752+ vim .keymap .set (" n" , " <s-right>" , MiniFiles .go_in , { buffer = buf_id })
753+ end ,
754+ })
755+ end ,
796756 },
797757
798758 {
@@ -1725,61 +1685,61 @@ return inject_all({
17251685 end ,
17261686 },
17271687
1728- -- {
1729- -- "nvim-treesitter/nvim-treesitter",
1730- -- branch = "main",
1731- -- lazy = false,
1732- -- dependencies = {
1733- -- {
1734- -- "nvim-treesitter/nvim-treesitter-textobjects",
1735- -- branch = "main",
1736- -- },
1737- -- },
1738- -- config = function(_, _)
1739- -- vim.api.nvim_create_autocmd("FileType", {
1740- -- pattern = { "*" },
1741- -- callback = function()
1742- -- local ok = pcall(vim.treesitter.start)
1743- -- if ok then
1744- -- vim.wo.foldexpr = "v:lua.vim.treesitter.foldexpr()"
1745- -- vim.bo.indentexpr = "v:lua.require'nvim-treesitter'.indentexpr()"
1746- -- end
1747- -- end,
1748- -- })
1749- -- end,
1750- -- },
1751-
17521688 {
17531689 " nvim-treesitter/nvim-treesitter" ,
1690+ branch = " main" ,
17541691 lazy = false ,
17551692 dependencies = {
17561693 {
17571694 " nvim-treesitter/nvim-treesitter-textobjects" ,
1695+ branch = " main" ,
17581696 },
17591697 },
1760- opts = {
1761- ensure_installed = {}, -- we get this from nix
1762- highlight = {
1763- enable = true ,
1764- },
1765- incremental_selection = {
1766- enable = false ,
1767- keymaps = {
1768- init_selection = " <cr>" ,
1769- node_incremental = " <cr>" ,
1770- scope_incremental = " <s-cr>" ,
1771- node_decremental = " <bs>" ,
1772- },
1773- },
1774- indent = {
1775- enable = true ,
1776- },
1777- },
1778- config = function (_ , opts )
1779- require (" nvim-treesitter.configs" ).setup (opts )
1698+ config = function (_ , _ )
1699+ vim .api .nvim_create_autocmd (" FileType" , {
1700+ pattern = { " *" },
1701+ callback = function ()
1702+ local ok = pcall (vim .treesitter .start )
1703+ if ok then
1704+ vim .wo .foldexpr = " v:lua.vim.treesitter.foldexpr()"
1705+ vim .bo .indentexpr = " v:lua.require'nvim-treesitter'.indentexpr()"
1706+ end
1707+ end ,
1708+ })
17801709 end ,
17811710 },
17821711
1712+ -- {
1713+ -- "nvim-treesitter/nvim-treesitter",
1714+ -- lazy = false,
1715+ -- dependencies = {
1716+ -- {
1717+ -- "nvim-treesitter/nvim-treesitter-textobjects",
1718+ -- },
1719+ -- },
1720+ -- opts = {
1721+ -- ensure_installed = {}, -- we get this from nix
1722+ -- highlight = {
1723+ -- enable = true,
1724+ -- },
1725+ -- incremental_selection = {
1726+ -- enable = false,
1727+ -- keymaps = {
1728+ -- init_selection = "<cr>",
1729+ -- node_incremental = "<cr>",
1730+ -- scope_incremental = "<s-cr>",
1731+ -- node_decremental = "<bs>",
1732+ -- },
1733+ -- },
1734+ -- indent = {
1735+ -- enable = true,
1736+ -- },
1737+ -- },
1738+ -- config = function(_, opts)
1739+ -- require("nvim-treesitter.configs").setup(opts)
1740+ -- end,
1741+ -- },
1742+
17831743 {
17841744 " nvim-treesitter/nvim-treesitter-context" ,
17851745 dependencies = {
0 commit comments