diff --git a/Makefile b/Makefile index c9eff71..71f8af6 100644 --- a/Makefile +++ b/Makefile @@ -143,6 +143,7 @@ link_vim: check_os @echo "Linking vim files..." $(call link,vim,.vim) $(call link,ideavimrc,.ideavimrc) + $(call link,vsvimrc,.vsvimrc) .PHONY: link_apps_config link_apps_config: check_os diff --git a/symlinks/config/nvim/lua/plugin/projectionist.lua b/symlinks/config/nvim/lua/plugin/projectionist.lua index b3a3a10..ca8a775 100644 --- a/symlinks/config/nvim/lua/plugin/projectionist.lua +++ b/symlinks/config/nvim/lua/plugin/projectionist.lua @@ -146,7 +146,29 @@ local python_config = { } } -local dotnet_config = {} +local dotnet_config = { + ["*"] = { + start = "dotnet run", + shell = "dotnet fsi" + }, + ["src/Controllers/*.cs"] = { + type = "controller" + }, + ["src/Models/*.cs"] = { + type = "model" + }, + ["src/Views/*.cshtml"] = { + type = "view" + }, + ["src/*.cs"] = { + type = "source", + alternate = "tests/{}Tests.cs" + }, + ["tests/*Tests.cs"] = { + type = "test", + alternate = "src/{}.cs" + } +} local vim_plugin_config = { ["doc/*.txt"] = { diff --git a/symlinks/vsvimrc b/symlinks/vsvimrc new file mode 100644 index 0000000..7f1ab28 --- /dev/null +++ b/symlinks/vsvimrc @@ -0,0 +1,11 @@ +source ~/.vim/vimrc +source ~/.vim/plugins.vim + +nnoremap :vsc MonoDevelop.Ide.Commands.SearchCommands.GotoFile +nnoremap gr :vsc MonoDevelop.Refactoring.RefactoryCommands.FindReferences +nnoremap K :vsc MonoDevelop.Ide.Commands.TextEditorCommands.ShowQuickInfo +nnoremap gD :vsc MonoDevelop.RefactoryCommands.NavigationCommands.FindBaseSymbols +nnoremap o :vsc MonoDevelop.Ide.Commands.FileTabCommands.CloseAllButThis + +nnoremap :vsc MonoDevelop.Ide.Commands.NavigationCommands.NavigateBack +nnoremap :vsc MonoDevelop.Ide.Commands.NavigationCommands.NavigateForward