From a39c4c64349611b7bc9b85f9ce2c8560a3a99757 Mon Sep 17 00:00:00 2001 From: Jim Richter Date: Mon, 8 Nov 2021 13:39:00 +0100 Subject: [PATCH] feat(nvim): add smoothscroll and md preview --- configs/.tmux.conf | 2 +- configs/init.lua | 2 ++ configs/lua/autocomplete.lua | 3 ++- configs/lua/plugins.lua | 9 +++++++-- 4 files changed, 12 insertions(+), 4 deletions(-) diff --git a/configs/.tmux.conf b/configs/.tmux.conf index c77a1da..57d90a9 100644 --- a/configs/.tmux.conf +++ b/configs/.tmux.conf @@ -10,7 +10,7 @@ set -g destroy-unattached unbind C-b set-option -g prefix C-a bind-key C-a send-prefix -bind b set-option status +bind-key -n C-b set-option -g status #Ctrl+F3 Combo # split panes using | and - bind | split-window -h -c "#{pane_current_path}" diff --git a/configs/init.lua b/configs/init.lua index 5da0f93..1a9a516 100644 --- a/configs/init.lua +++ b/configs/init.lua @@ -46,6 +46,8 @@ if u.has_plugin("cmp") then cmd("highlight Normal guibg=none") cmd("highlight NonText guibg=none") + require('neoscroll').setup() + -- Configure nvim-tree g.nvim_tree_special_files = {} g.nvim_tree_icons = { diff --git a/configs/lua/autocomplete.lua b/configs/lua/autocomplete.lua index 695ad14..507ccbc 100644 --- a/configs/lua/autocomplete.lua +++ b/configs/lua/autocomplete.lua @@ -41,7 +41,8 @@ cmp.setup { }, sources = { {name = "nvim_lsp"}, - {name = "luasnip"} + {name = "luasnip"}, + {name = "path"} } } diff --git a/configs/lua/plugins.lua b/configs/lua/plugins.lua index cd62b32..d12dcf4 100644 --- a/configs/lua/plugins.lua +++ b/configs/lua/plugins.lua @@ -18,7 +18,8 @@ return require("packer").startup(function() use "nvim-lua/popup.nvim" use "mhinz/vim-startify" use "lukas-reineke/indent-blankline.nvim" - + use "karb94/neoscroll.nvim" + -- Code Navigation use "dense-analysis/ale" use "nathanmsmith/nvim-ale-diagnostic" @@ -38,6 +39,7 @@ return require("packer").startup(function() use "nvim-lua/lsp-status.nvim" use "hrsh7th/nvim-cmp" use "hrsh7th/cmp-nvim-lsp" + use "hrsh7th/cmp-path" use "weilbith/nvim-code-action-menu" -- Need to find better alternative use "L3MON4D3/LuaSnip" use "windwp/nvim-autopairs" @@ -47,7 +49,10 @@ return require("packer").startup(function() run = ':TSUpdate' } - + -- Preview Markdown + use "ellisonleao/glow.nvim" + + -- Autoformat use "sbdchd/neoformat" -- General Popup Window