summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSquibid <me@zacharyscheiman.com>2023-02-26 16:19:31 -0500
committerSquibid <me@zacharyscheiman.com>2023-02-26 16:19:31 -0500
commitf71d4e119a4246b7fcdb1c0c3d8a2c9d78bf7785 (patch)
tree46544acf88645617304b6a4790eff64dc53b7626
parentc4fcb3f442333df669a50c443a7fa4cde6e15dda (diff)
downloadnvim-f71d4e119a4246b7fcdb1c0c3d8a2c9d78bf7785.tar.gz
nvim-f71d4e119a4246b7fcdb1c0c3d8a2c9d78bf7785.tar.bz2
nvim-f71d4e119a4246b7fcdb1c0c3d8a2c9d78bf7785.zip
remove codewindow and replace with nvim-scrollbar
-rw-r--r--lua/core/overrides/codewindow.lua18
-rw-r--r--lua/core/overrides/init.lua2
-rw-r--r--lua/core/overrides/scrollbar.lua29
-rw-r--r--lua/core/plugins.lua5
4 files changed, 33 insertions, 21 deletions
diff --git a/lua/core/overrides/codewindow.lua b/lua/core/overrides/codewindow.lua
deleted file mode 100644
index 9703143..0000000
--- a/lua/core/overrides/codewindow.lua
+++ /dev/null
@@ -1,18 +0,0 @@
-local codewindow = require('codewindow')
-codewindow.setup({
- show_cursor = false,
- minimap_width = 15,
- window_border = 'single',
- exclude_filetypes = {
- "netrw",
- "help",
- "term",
- "gitcommit",
- "packer",
- "vim",
- "Trouble",
- "alpha",
- "NvimTree",
- },
-})
-codewindow.apply_default_keybinds()
diff --git a/lua/core/overrides/init.lua b/lua/core/overrides/init.lua
index 23e02cf..0e60a13 100644
--- a/lua/core/overrides/init.lua
+++ b/lua/core/overrides/init.lua
@@ -1,7 +1,6 @@
require('core.overrides.indentblankline')
require('core.overrides.lualine')
require('core.overrides.telescope')
-require('core.overrides.codewindow')
require('core.overrides.modicator')
require('core.overrides.neorg')
require('core.overrides.whichkey')
@@ -20,3 +19,4 @@ require('core.overrides.noneckpain')
require('core.overrides.alpha')
require('core.overrides.notify')
require('core.overrides.hover')
+require('core.overrides.scrollbar')
diff --git a/lua/core/overrides/scrollbar.lua b/lua/core/overrides/scrollbar.lua
new file mode 100644
index 0000000..e286084
--- /dev/null
+++ b/lua/core/overrides/scrollbar.lua
@@ -0,0 +1,29 @@
+require("scrollbar").setup({
+ show = true,
+ show_in_active_only = true,
+ handle = {
+ color = colors.bg_highlight,
+ },
+ marks = {
+ Search = { color = colors.pink },
+ Error = { color = colors.red },
+ Warn = { color = colors.orange },
+ Info = { color = colors.blue },
+ Hint = { color = colors.grey2 },
+ Misc = { color = colors.purple },
+ },
+ excluded_buftypes = {
+ "terminal",
+ },
+ excluded_filetypes = {
+ "prompt",
+ "TelescopePrompt",
+ "noice",
+ "alpha",
+ },
+ handlers = {
+ diagnostic = true,
+ gitsigns = true,
+ search = true,
+ }
+})
diff --git a/lua/core/plugins.lua b/lua/core/plugins.lua
index efedb7e..c27da02 100644
--- a/lua/core/plugins.lua
+++ b/lua/core/plugins.lua
@@ -10,12 +10,13 @@ end
vim.opt.rtp:prepend(lazypath)
require('lazy').setup{
- { 'notjedi/nvim-rooter.lua', config = true },
{ 'tamton-aquib/essentials.nvim' },
-- only the most useless plugins (some of these are also ui related)
{ 'goolord/alpha-nvim' },
- { 'gorbit99/codewindow.nvim' },
+ { 'petertriho/nvim-scrollbar',
+ dependencies = { 'kevinhwang91/nvim-hlslens' },
+ },
{ 'alec-gibson/nvim-tetris' },
{ 'kwakzalver/duckytype.nvim', config = true }, -- like monkey type
{ 'melkster/modicator.nvim' },