From 00ded90580ba40155adfb90d4f9aab8318140199 Mon Sep 17 00:00:00 2001 From: philw Date: Mon, 29 Apr 2024 23:44:01 +0200 Subject: Update readme and stuff --- README.md | 36 +++++++++--------------------------- init.lua | 12 ++++++++++++ 2 files changed, 21 insertions(+), 27 deletions(-) diff --git a/README.md b/README.md index 77b2080..fdb43f7 100644 --- a/README.md +++ b/README.md @@ -4,7 +4,7 @@ ### Installation -Run checkhealth in your Neovim +Run checkhealth in your nvim to satisfy it's requirements ```vim :checkhealth @@ -13,21 +13,11 @@ Run checkhealth in your Neovim Make sure you analyzed the output properly: - Your neovim must be >= 0.7.0 to run this config -- You need to setup [Packer](https://github.com/wbthomason/packer.nvim) ```vim git clone --depth 1 https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim ``` - -- You should install global python provider - -```python -pip install pynvim -``` - -- You should install clipboard tool (I use xclip but you can use something diffrent) - ### Installation > Easy way @@ -35,12 +25,12 @@ pip install pynvim You can just clone this repo to your .config folder ```bash -git clone https://github.com/dsrcr/nvim ~/.config +git clone https://codeberg.com/philw/nvim ~/.config ``` -> Recommended way +> My way -I use gnu-stow to manage my dotfiles, so I encourage you to use it too. +I use ![gnu-stow](https://www.gnu.org/software/stow/) to manage my ![dotfiles](https://codeberg.org/philw/rice), so I encourage you to use it too. Use your package manage of choice to get stow, for example: @@ -55,22 +45,14 @@ In order to do this you need an empty nvim directory in your .config folder ```bash cd ~/.config mkdir nvim -cd ~/yourDirectory -git clone https://github.com/dsrcr/nvim -stow -d ~/yourDirectory -t ~/.config/nvim nvim/ +cd ~/dir +git clone https://codeberg.org/philw/nvim +stow -d ~/dir -t ~/.config/nvim nvim/ ``` +Or use my ![script](https://codeberg.org/philw/scripts) -The last step is running this command in your neovim - -```vim -:PackerSync -``` - -This command should pull everything you need - -In the next step you will encounter a lot of errors, but don't worry about it. -Packer needs to pull specific plugins and then you need to install Treesitter's support for specific filetypes eg. lua, rust.... etc. +Everything should set up automatically. There is no need for additional setup(if there is report an error). ```bash :TSUpdate diff --git a/init.lua b/init.lua index 1864aee..3afc76a 100644 --- a/init.lua +++ b/init.lua @@ -4,6 +4,7 @@ local keymap = vim.keymap vim.g.loaded_netrw = 1 vim.g.loaded_netrwPlugin = 1 vim.g.rustfmt_autosave = 1 +vim.g.mkdp_auto_start = 1 --Basic Editor Setup option.nu = true @@ -68,6 +69,15 @@ require("lazy").setup({ "williamboman/mason.nvim", "nvim-tree/nvim-web-devicons", "williamboman/mason-lspconfig.nvim", + { + "iamcco/markdown-preview.nvim", + cmd = { "MarkdownPreviewToggle", "MarkdownPreview", "MarkdownPreviewStop" }, + build = "cd app && yarn install", + init = function() + vim.g.mkdp_filetypes = { "markdown" } + end, + ft = { "markdown" }, + }, 'nvimdev/lspsaga.nvim', config = function() require('lspsaga').setup({}) @@ -225,3 +235,5 @@ keymap.set("n", "", "u") keymap.set("v", "J", ":m '>+1gv=gv") keymap.set("v", "K", ":m '<-2gv=gv") keymap.set("n", "ca", "Lspsaga code_action") +keymap.set("n", "f", "Telescope find_files") +keymap.set("n", "g", "Telescope live_grep") -- cgit v1.2.3 From 66be3b7e7f65967b238f8e93865a8bd1a9f01bf3 Mon Sep 17 00:00:00 2001 From: philw Date: Tue, 30 Apr 2024 20:11:56 +0200 Subject: Update readme --- README.md | 8 ++------ 1 file changed, 2 insertions(+), 6 deletions(-) diff --git a/README.md b/README.md index fdb43f7..d57dd4d 100644 --- a/README.md +++ b/README.md @@ -14,10 +14,6 @@ Make sure you analyzed the output properly: - Your neovim must be >= 0.7.0 to run this config -```vim -git clone --depth 1 https://github.com/wbthomason/packer.nvim\ - ~/.local/share/nvim/site/pack/packer/start/packer.nvim -``` ### Installation > Easy way @@ -25,12 +21,12 @@ git clone --depth 1 https://github.com/wbthomason/packer.nvim\ You can just clone this repo to your .config folder ```bash -git clone https://codeberg.com/philw/nvim ~/.config +git clone https://codeberg.org/philw/nvim ~/.config ``` > My way -I use ![gnu-stow](https://www.gnu.org/software/stow/) to manage my ![dotfiles](https://codeberg.org/philw/rice), so I encourage you to use it too. +I use [gnu-stow](https://www.gnu.org/software/stow/) to manage my [dotfiles](https://codeberg.org/philw/rice), so I encourage you to use it too. Use your package manage of choice to get stow, for example: -- cgit v1.2.3 From 4a1da6c00e4ab104a98259512da38ce3f1ccbc68 Mon Sep 17 00:00:00 2001 From: philw Date: Tue, 30 Apr 2024 22:32:16 +0200 Subject: Add demo screens --- demos/sc1.png | Bin 0 -> 493238 bytes 1 file changed, 0 insertions(+), 0 deletions(-) create mode 100644 demos/sc1.png diff --git a/demos/sc1.png b/demos/sc1.png new file mode 100644 index 0000000..be01afb Binary files /dev/null and b/demos/sc1.png differ -- cgit v1.2.3 From 96d54efc4bf19235c1075c1b7ef80f8379906b18 Mon Sep 17 00:00:00 2001 From: philw Date: Tue, 30 Apr 2024 22:40:00 +0200 Subject: Update readme --- README.md | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index d57dd4d..3ab13b8 100644 --- a/README.md +++ b/README.md @@ -2,6 +2,7 @@ ![nvim](https://user-images.githubusercontent.com/91333841/212791030-440472c6-1568-4754-9181-c47e69bc42d6.png) +### Features ### Installation Run checkhealth in your nvim to satisfy it's requirements @@ -46,7 +47,7 @@ git clone https://codeberg.org/philw/nvim stow -d ~/dir -t ~/.config/nvim nvim/ ``` -Or use my ![script](https://codeberg.org/philw/scripts) +Or use my [script](https://codeberg.org/philw/scripts) Everything should set up automatically. There is no need for additional setup(if there is report an error). -- cgit v1.2.3