From cdc7f2498288e9ac716d4779ead154708266df07 Mon Sep 17 00:00:00 2001 From: Pratik Tripathy Date: Sun, 12 May 2024 21:41:10 +0530 Subject: [PATCH] Dotnet: Coding Support - Neovim LSP and code completion config - .zshrc: dotnet completions plugin added - .zshrc: Syntax-highlighting & autosuggestions are now installed through brew --- common/.config/nvim/lua/plugins/code-completion.lua | 3 +++ common/.config/nvim/lua/plugins/code-lsp.lua | 1 + common/.zshrc | 6 ++++-- 3 files changed, 8 insertions(+), 2 deletions(-) diff --git a/common/.config/nvim/lua/plugins/code-completion.lua b/common/.config/nvim/lua/plugins/code-completion.lua index 097f464..5f92a7c 100644 --- a/common/.config/nvim/lua/plugins/code-completion.lua +++ b/common/.config/nvim/lua/plugins/code-completion.lua @@ -15,6 +15,9 @@ return { "hrsh7th/cmp-path", "hrsh7th/cmp-buffer", + "hrsh7th/cmp-vsnip", + "hrsh7th/vim-vsnip", + -- Adds a number of user-friendly snippets "rafamadriz/friendly-snippets", }, diff --git a/common/.config/nvim/lua/plugins/code-lsp.lua b/common/.config/nvim/lua/plugins/code-lsp.lua index f920cc7..422e656 100644 --- a/common/.config/nvim/lua/plugins/code-lsp.lua +++ b/common/.config/nvim/lua/plugins/code-lsp.lua @@ -69,6 +69,7 @@ return { }, bashls = { filetypes = { "sh", "bash", "zsh" } }, html = { filetypes = { "html", "twig", "hbs" } }, + omnisharp = {}, tsserver = { settings = { completions = { diff --git a/common/.zshrc b/common/.zshrc index 5c1b049..3f2e47b 100644 --- a/common/.zshrc +++ b/common/.zshrc @@ -53,9 +53,8 @@ plugins=( docker-compose per-directory-history sudo - zsh-syntax-highlighting - zsh-autosuggestions vi-mode + dotnet exercism ) VI_MODE_SET_CURSOR=true @@ -67,6 +66,9 @@ export ZSH_COMPDUMP="$XDG_CACHE_HOME/zsh/zcompdump-$HOST" source "$ZSH/oh-my-zsh.sh" +source "$(brew --prefix)/share/zsh-autosuggestions/zsh-autosuggestions.zsh" +source "$(brew --prefix)/share/zsh-syntax-highlighting/zsh-syntax-highlighting.zsh" + # To customize prompt, run `p10k configure` [[ ! -f "$XDG_CONFIG_HOME/shell/p10k.zsh" ]] || source "$XDG_CONFIG_HOME/shell/p10k.zsh"