Replace Supermaven with Windsurf in Neovim

This commit is contained in:
Mikkel Svartveit 2025-06-02 22:37:06 +02:00
parent a117bcb328
commit 6e6eb3c0a0
5 changed files with 22 additions and 17 deletions

View file

@ -1,6 +1,9 @@
# Disable greeting # Disable greeting
set fish_greeting set fish_greeting
# Use Neovim as the default text editor
set -x EDITOR "nvim"
alias icloud="cd ~/Library/Mobile\ Documents/com~apple~CloudDocs" alias icloud="cd ~/Library/Mobile\ Documents/com~apple~CloudDocs"
alias pi="ssh pi@pi.misva.me -p 1733" alias pi="ssh pi@pi.misva.me -p 1733"
alias gcp="ssh mikkelsvartveit@gcp.misva.me" alias gcp="ssh mikkelsvartveit@gcp.misva.me"
@ -79,6 +82,7 @@ fish_add_path "$HOME/.pyenv/bin" # pyenv
fish_add_path "$HOME/Library/pnpm" # pnpm fish_add_path "$HOME/Library/pnpm" # pnpm
fish_add_path "$HOME/go/bin" # Go fish_add_path "$HOME/go/bin" # Go
fish_add_path "$HOME/.cargo/bin" # Rust fish_add_path "$HOME/.cargo/bin" # Rust
fish_add_path "$HOME/.codeium/windsurf/bin" # Windsurf
if [ -f "$HOME/Applications/google-cloud-sdk/path.fish.inc" ]; . "$HOME/Applications/google-cloud-sdk/path.fish.inc"; end # Google Cloud SDK if [ -f "$HOME/Applications/google-cloud-sdk/path.fish.inc" ]; . "$HOME/Applications/google-cloud-sdk/path.fish.inc"; end # Google Cloud SDK
# Initialize pnpm # Initialize pnpm
@ -97,6 +101,3 @@ set --export PATH $BUN_INSTALL/bin $PATH
# Added by OrbStack: command-line tools and integration # Added by OrbStack: command-line tools and integration
# This won't be added again if you remove it. # This won't be added again if you remove it.
source ~/.orbstack/shell/init2.fish 2>/dev/null || : source ~/.orbstack/shell/init2.fish 2>/dev/null || :
# Added by Windsurf
fish_add_path /Users/mikkelsvartveit/.codeium/windsurf/bin

View file

@ -1,9 +1,13 @@
[alias]
yield = !git pull --rebase --autostash && git push
yolofix = !git commit -v -a --no-edit --amend && git push --force-with-lease
[user] [user]
name = Mikkel Svartveit name = Mikkel Svartveit
email = mikkel.svartveit@gmail.com email = mikkel.svartveit@gmail.com
[core] [core]
excludesfile = ~/.config/git/gitignore_global excludesfile = ~/.config/git/gitignore_global
editor = nvim editor = nvim
pager = "delta --syntax-theme=ansi --dark"
[init] [init]
defaultBranch = main defaultBranch = main
[pull] [pull]
@ -21,6 +25,3 @@
cmd = git-nbmergetool merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\" cmd = git-nbmergetool merge \"$BASE\" \"$LOCAL\" \"$REMOTE\" \"$MERGED\"
[mergetool] [mergetool]
prompt = false prompt = false
[alias]
yield = !git pull --rebase --autostash && git push
yolofix = !git commit -v -a --no-edit --amend && git push --force-with-lease

View file

@ -1,2 +1,3 @@
.DS_Store .DS_Store
.vim .vim
**/.claude/settings.local.json

View file

@ -21,9 +21,9 @@
"nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" }, "nvim-treesitter": { "branch": "master", "commit": "42fc28ba918343ebfd5565147a42a26580579482" },
"nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" }, "nvim-web-devicons": { "branch": "master", "commit": "1fb58cca9aebbc4fd32b086cb413548ce132c127" },
"plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" }, "plenary.nvim": { "branch": "master", "commit": "857c5ac632080dba10aae49dba902ce3abf91b35" },
"supermaven-nvim": { "branch": "main", "commit": "07d20fce48a5629686aefb0a7cd4b25e33947d50" },
"telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" }, "telescope-fzf-native.nvim": { "branch": "main", "commit": "1f08ed60cafc8f6168b72b80be2b2ea149813e55" },
"telescope.nvim": { "branch": "master", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" }, "telescope.nvim": { "branch": "master", "commit": "7011eaae0ac1afe036e30c95cf80200b8dc3f21a" },
"vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" }, "vim-repeat": { "branch": "master", "commit": "65846025c15494983dafe5e3b46c8f88ab2e9635" },
"vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" } "vim-surround": { "branch": "master", "commit": "3d188ed2113431cf8dac77be61b842acb64433d9" },
"windsurf.vim": { "branch": "main", "commit": "272c6e2755e8faa90e26bcdcd9fde6b9e61751ea" }
} }

View file

@ -160,18 +160,16 @@ require("lazy").setup({
opts = {}, opts = {},
}, },
-- Supermaven AI assist -- AI autocompletion
{ {
"supermaven-inc/supermaven-nvim", "Exafunction/windsurf.vim",
event = "BufEnter",
config = function() config = function()
vim.api.nvim_create_user_command("CPE", "SupermavenStart", {}) vim.api.nvim_create_user_command("CPE", "CodeiumEnable", {})
vim.api.nvim_create_user_command("CPD", "SupermavenStop", {}) vim.api.nvim_create_user_command("CPD", "CodeiumDisable", {})
require("supermaven-nvim").setup({})
-- Disable on startup -- Disable on startup
local api = require("supermaven-nvim.api") vim.cmd("CodeiumDisable")
api.stop()
end, end,
}, },
@ -184,7 +182,11 @@ require("lazy").setup({
config = function() config = function()
require("claude-code").setup({ require("claude-code").setup({
window = { window = {
split_ratio = 0.5, position = "botright vsplit",
split_ratio = 0.4,
},
keymaps = {
window_navigation = false,
}, },
}) })
end, end,