From 9c950e25838819fe13e5dbe9f70ac38e2154ddff Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 13 Mar 2021 16:32:13 +0530 Subject: [PATCH 1/9] init.lua guides --- README.md | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/README.md b/README.md index 96d0dc0..43fd4fd 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,11 @@ The config is complete but still WIP as Im new to lua and slowly learning vim st with Treesitter +# Some guides to migrate to init.lua! +https://github.com/nanotee/nvim-lua-guide +https://alpha2phi.medium.com/neovim-init-lua-e80f4f136030 +https://oroques.dev/notes/neovim-init/ +https://icyphox.sh/blog/nvim-lua/ # Clone my setup From 928a44d5e0f42ec6c5704f10c0c96a991c3861d1 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 13 Mar 2021 16:33:42 +0530 Subject: [PATCH 2/9] Update README.md --- README.md | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index 43fd4fd..b2f68f9 100644 --- a/README.md +++ b/README.md @@ -38,10 +38,15 @@ The config is complete but still WIP as Im new to lua and slowly learning vim st # Some guides to migrate to init.lua! -https://github.com/nanotee/nvim-lua-guide -https://alpha2phi.medium.com/neovim-init-lua-e80f4f136030 -https://oroques.dev/notes/neovim-init/ -https://icyphox.sh/blog/nvim-lua/ + +- https://github.com/nanotee/nvim-lua-guide + +- https://alpha2phi.medium.com/neovim-init-lua-e80f4f136030 + +- https://oroques.dev/notes/neovim-init/ + +- https://icyphox.sh/blog/nvim-lua/ + # Clone my setup From ec9626f3d57cf5ea78bdb54c499615e4a2b84c25 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 13 Mar 2021 16:37:43 +0530 Subject: [PATCH 3/9] Update README.md --- README.md | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index b2f68f9..9c0c844 100644 --- a/README.md +++ b/README.md @@ -64,8 +64,11 @@ git clone https://github.com/wbthomason/packer.nvim\ ` sudo npm install -g vscode-html-languageserver-bin typescript typescript-language-server vscode-css-languageserver-bin prettier ` - To setup any language server , follow this guide https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md and search up the needed LSP. For example if I needed clangd's lsp server - ![image](https://user-images.githubusercontent.com/59060246/111027526-d43f5780-8416-11eb-87d2-6f85f5f2be6f.png) . + To setup any language server , follow this guide https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md and search up the needed LSP. For example if I needed clangd's lsp server : + + + + I'd install it first and add its setup line ( require'lspconfig'.clangd.setup{} ) in /lua/nvim-lspconfig/lua.lua file . From 89a772b3bd5bf79aae92f31511f637894512622d Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 13 Mar 2021 16:38:14 +0530 Subject: [PATCH 4/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 9c0c844..15f4cdc 100644 --- a/README.md +++ b/README.md @@ -67,7 +67,7 @@ git clone https://github.com/wbthomason/packer.nvim\ To setup any language server , follow this guide https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md and search up the needed LSP. For example if I needed clangd's lsp server : - + From 9c7e3ba577fcf26e4e3cefe0c3066f918a9470f6 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 13 Mar 2021 16:40:23 +0530 Subject: [PATCH 5/9] image borders --- README.md | 25 +++++++++++++------------ 1 file changed, 13 insertions(+), 12 deletions(-) diff --git a/README.md b/README.md index 15f4cdc..ba4def8 100644 --- a/README.md +++ b/README.md @@ -2,40 +2,40 @@ The config is complete but still WIP as Im new to lua and slowly learning vim st # Screenshots - - + + # Some VERY COOL lua plugins I use - nvim-lspkind , for showing lil icons/pictograms on completion items - + - nvim-tree.lua , a fast file tree - + - telescope-nvim , a fuzzy file finder , picker , sorter , previewer and much more! - - + + - galaxyline , a statusline plugin - + - gitsigns.nvim , to show git signs of a repo on the signcolumn to indicate diffs/changes etc (needs plenary.nvim) - nvim-bufferline.lua , as a top bufferline like thing which lets me handle tabs like switching , closing tabs. - + - nvim-web-devicons , lua fork of vim devicons which lets me change icons of filetypes - + - nvim-treesitter , better syntax highlighting for programming languages ( my config just has html,css,js support for now ). without Treesitter - + with Treesitter - + # Some guides to migrate to init.lua! @@ -70,6 +70,7 @@ git clone https://github.com/wbthomason/packer.nvim\ + + I'd install it first and add its setup line ( require'lspconfig'.clangd.setup{} ) in /lua/nvim-lspconfig/lua.lua file . - From 738f5d4e565f24211cc998d51cdfd8bbcc0848f9 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 13 Mar 2021 18:37:38 +0530 Subject: [PATCH 6/9] Update README.md --- README.md | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/README.md b/README.md index ba4def8..0519c8f 100644 --- a/README.md +++ b/README.md @@ -53,16 +53,17 @@ The config is complete but still WIP as Im new to lua and slowly learning vim st - Install neovim-nightly , also use a nerdfont on your terminal. - Install packer.nvim -` +```shell git clone https://github.com/wbthomason/packer.nvim\ ~/.local/share/nvim/site/pack/packer/start/packer.nvim - ` +``` - Open neovim and install all plugins , :PackerInstall and :TSUpdate - Install language servers and prettier ( for autocompletion etc and code formatting , nodejs should be installed too!) - ` sudo npm install -g vscode-html-languageserver-bin typescript typescript-language-server vscode-css-languageserver-bin prettier - ` + ``` + sudo npm install -g vscode-html-languageserver-bin typescript typescript-language-server vscode-css-languageserver-bin prettier + ``` To setup any language server , follow this guide https://github.com/neovim/nvim-lspconfig/blob/master/CONFIG.md and search up the needed LSP. For example if I needed clangd's lsp server : From bdc8e4d77be081058c65d8361591b75816d91074 Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sat, 13 Mar 2021 18:40:48 +0530 Subject: [PATCH 8/9] minor changes --- init.lua | 1 - 1 file changed, 1 deletion(-) diff --git a/init.lua b/init.lua index 621d5f9..05d783b 100644 --- a/init.lua +++ b/init.lua @@ -11,7 +11,6 @@ require("telescope-nvim.lua") -- lsp require("nvim-lspconfig.lua") require("nvim-compe.lua") -require("coc.lua") require("gitsigns.lua") From 3157638e48f12bf3c35c647835f3dedccc0124da Mon Sep 17 00:00:00 2001 From: siduck76 Date: Sun, 14 Mar 2021 09:18:57 +0530 Subject: [PATCH 9/9] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 0519c8f..f83c9d5 100644 --- a/README.md +++ b/README.md @@ -74,4 +74,4 @@ git clone https://github.com/wbthomason/packer.nvim\ - I'd install it first and add its setup line ( require'lspconfig'.clangd.setup{} ) in /lua/nvim-lspconfig/lua.lua file . + I'd install it first and add its setup line ( require'lspconfig'.clangd.setup{} ) in /lua/nvim-lspconfig/lua.lua file . I will organise the config slowly and soon add a list of important mappings used in my config , on this readme so it might get easy for some :)