From 2efdb7597663c996b4c831046ef5b4ed4b6a129a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 8 Apr 2021 16:49:56 +0200 Subject: [PATCH 1/2] Add .vsvimrc config file --- Makefile | 1 + symlinks/vsvimrc | 11 +++++++++++ 2 files changed, 12 insertions(+) create mode 100644 symlinks/vsvimrc 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/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 From 594d500d1d4b6c957dd530b2b022ad85731b8501 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ensar=20Saraj=C4=8Di=C4=87?= Date: Thu, 8 Apr 2021 16:50:20 +0200 Subject: [PATCH 2/2] Add dotnet projectionist base config --- .../config/nvim/lua/plugin/projectionist.lua | 24 ++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) 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"] = {