From 3e57449f509ec7f09c058b55bba57ab6ff7022ed Mon Sep 17 00:00:00 2001 From: cool-mist Date: Sun, 7 Apr 2024 00:50:52 +0530 Subject: [PATCH] Better instructions --- README.md | 10 ++++------ init.lua | 8 ++++++-- 2 files changed, 10 insertions(+), 8 deletions(-) diff --git a/README.md b/README.md index 9bba86c..a727020 100644 --- a/README.md +++ b/README.md @@ -1,12 +1,12 @@ # Nvimconfigs # -My neovim settings. Contrary to popular opinion of breaking down your configs, this configuration is a single file because why not!! It is becoming very difficult to split them anyways with plugin dependencies on other settings, plugins defining keybinds in their setup and so on. +My neovim settings. Contrary to popular opinion of breaking down your configs, this configuration is a single file because why not!! It is very difficult to split them anyways with plugin dependencies on other plugins, plugins defining keybinds in their setup and so on. This uses Lazy as the plugin manager. # Prerequisites # -- Tested on Arch and Windows native. Should probably work on most linux distros. +- Tested on Arch and Windows native. Should probably work on both linux and windows. - `neovim` - `npm` - `python` @@ -15,19 +15,17 @@ This uses Lazy as the plugin manager. - `go` - `rust` - `ripgrep` - for fuzzy searching -- `fzf` - for fuzzy searching -- `zk` - for notetaking # Installation # - `make install` if on linux. +- Otherwise, follow the manual process below ## Manually ## Above command will take a backup of your current vim settings in `~/.config/nvim/init.lua` and installs the configs from this project. Therefore, to install manually, you can -- Download and place this manually as well in that location -- Download it elsewhere and create a symlink to this file +- Download and place this manually in that location. On windows, it is `$env:LocalAppData\nvim\init.lua`. On Linux, it is `~/.config/nvim/init.lua`. # Post Install # diff --git a/init.lua b/init.lua index 9c1d04b..384a85b 100644 --- a/init.lua +++ b/init.lua @@ -189,7 +189,7 @@ lazy.setup({ } }, - -- Nvim-notify will be plugged into the default vim notify system for a + -- Nvim-notify will be plugged into the default vim notify system for a -- better notification box { "rcarriga/nvim-notify", @@ -464,6 +464,10 @@ lazy.setup({ V.keymap.set('n', 'fe', V.diagnostic.open_float, { desc = 'Show diagnostic [E]rror messages' }) V.keymap.set('n', 'fd', V.diagnostic.setloclist, { desc = 'Open diagnostic [Q]uickfix list' }) V.keymap.set('n', 'fe', V.diagnostic.open_float, { desc = 'Open diagnostic message on the line' }) + -- Define some keybinding to build the current solution + V.keymap.set('n', 'dtb', function() + V.cmd('!dotnet build') + end, { silent = true }) end, }) end, @@ -603,7 +607,7 @@ lazy.setup({ } } - -- Below configuration tells how to launch a debugging interactive session for a C# + -- Below configuration tells how to launch a debugging interactive session for a C# -- application when using the netcoredbg adapeter. dap.configurations.cs = { {