My vim configuration
git clone https://github.com/m-col/vim-misc
Files | Refs | Readme

Commit 3862472b55a1119916f64dbe78bd87e5071f454e
Parent: a0fbf11e0e8f66d8b2592087c677ec46d3ecffcd
Author: matt colligan <mlv@posteo.net>
Date: 2025-07-17 17:30:38 +0100
Committer: matt colligan <mlv@posteo.net>
Committed: 2025-07-17 17:30:38 +0100

updqtes

start/self/plugin/settings.vim Modified

@@ -103,3 +103,11 @@
 
 " used by Ctrl-P, likely among other things
 set wildignore+=*/tmp/*,*.so,*.swp,*.zip,node_modules,target,.mypy_cache
+
+" For some reason i need this for typescriptreact files to be configured
+augroup run_ftplugin_typescriptreact
+    autocmd!
+    autocmd FileType typescriptreact source ~/.vim/pack/vim-misc/start/self/ftplugin/typescriptreact.vim
+    autocmd FileType typescript source ~/.vim/pack/vim-misc/start/self/ftplugin/typescript.vim
+    autocmd FileType javascript source ~/.vim/pack/vim-misc/start/self/ftplugin/javascript.vim
+augroup END

start/self/plugin/keybindings.vim Modified

@@ -125,6 +125,7 @@
 "nmap <silent> <C-S-f> <Plug>(ale_fix)
 nmap <silent> <C-i> <Plug>(ale_find_references)
 nmap <silent> <C-]> <Plug>(ale_go_to_definition)
+nmap <silent> <C-f> <Plug>(ale_fix)
 
 " telescope
 nnoremap <silent> <C-p> :Telescope git_files<CR>

start/self/plugin/init.lua Modified

@@ -98,12 +98,6 @@
       'ludovicchabant/vim-gutentags',
   },
   {
-      'prichrd/netrw.nvim',
-      dependencies = { 'nvim-tree/nvim-web-devicons' },
-      opts = {},
-      use_devicons = true,
-  },
-  {
     "supermaven-inc/supermaven-nvim",
     opts = {
       keymaps = {
@@ -112,57 +106,53 @@
       }
     },
   },
-  {
-    "yetone/avante.nvim",
-    event = "VeryLazy",
-    version = false,
-    opts = {
-      provider = "claude",
-      --providers = {
-      --  openai = {
-      --    endpoint = "https://api.openai.com/v1",
-      --    model = "gpt-4o", -- your desired model (or use gpt-4o, etc.)
-      --    extra_request_body = {
-      --      timeout = 30000, -- Timeout in milliseconds, increase this for reasoning models
-      --      temperature = 0.75,
-      --      max_completion_tokens = 8192, -- Increase this to include reasoning tokens (for reasoning models)
-      --      --reasoning_effort = "medium", -- low|medium|high, only used for reasoning models
-      --    },
-      --  },
-      --},
-    },
-    dependencies = {
-      "nvim-treesitter/nvim-treesitter",
-      "stevearc/dressing.nvim",
-      "nvim-lua/plenary.nvim",
-      "MunifTanjim/nui.nvim",
-      --- The below dependencies are optional,
-      "nvim-telescope/telescope.nvim", -- for file_selector provider telescope
-      "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
-      "nvim-tree/nvim-web-devicons",
-      {
-        -- support for image pasting
-        "HakonHarnes/img-clip.nvim",
-        event = "VeryLazy",
-        opts = {
-          default = {
-            embed_image_as_base64 = false,
-            prompt_for_file_name = false,
-            drag_and_drop = {
-              insert_mode = true,
-            },
-          },
-        },
-      },
-      {
-        'MeanderingProgrammer/render-markdown.nvim',
-        opts = {
-          file_types = { "Avante" },
-        },
-        ft = { "Avante" },
-      },
-    },
-  }
+  --{
+  --  "yetone/avante.nvim",
+  --  event = "VeryLazy",
+  --  version = false,
+  --  opts = {
+  --    provider = "gemini",
+  --    --provider = "claude",
+  --  },
+  --  behaviour = {
+  --      auto_set_keymaps = false,
+  --  },
+  --  --hints = { enabled = false },
+  --  --windows = {
+  --  --    sidebar_header = { enabled = false },
+  --  --},
+  --  dependencies = {
+  --    "nvim-treesitter/nvim-treesitter",
+  --    "stevearc/dressing.nvim",
+  --    "nvim-lua/plenary.nvim",
+  --    "MunifTanjim/nui.nvim",
+  --    --- The below dependencies are optional,
+  --    "nvim-telescope/telescope.nvim", -- for file_selector provider telescope
+  --    "hrsh7th/nvim-cmp", -- autocompletion for avante commands and mentions
+  --    "nvim-tree/nvim-web-devicons",
+  --    {
+  --      -- support for image pasting
+  --      "HakonHarnes/img-clip.nvim",
+  --      event = "VeryLazy",
+  --      opts = {
+  --        default = {
+  --          embed_image_as_base64 = false,
+  --          prompt_for_file_name = false,
+  --          drag_and_drop = {
+  --            insert_mode = true,
+  --          },
+  --        },
+  --      },
+  --    },
+  --    {
+  --      'MeanderingProgrammer/render-markdown.nvim',
+  --      opts = {
+  --        file_types = { "Avante" },
+  --      },
+  --      ft = { "Avante" },
+  --    },
+  --  },
+  --}
 })
 
 --local colors = require("catppuccin.palettes").get_palette("mocha")

start/self/ftplugin/javascript.vim Modified

@@ -1,3 +1,4 @@
 setlocal tabstop=2
 setlocal softtabstop=2
 setlocal shiftwidth=2
+setlocal expandtab