summaryrefslogtreecommitdiff
path: root/.config/nvim/lua/quickscope
diff options
context:
space:
mode:
authorGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-15 23:26:50 +0100
committerGustaf Rydholm <gustaf.rydholm@gmail.com>2021-03-15 23:26:50 +0100
commit855f4e4f0f22b35641f13614e46b9ab7f6818188 (patch)
tree9a776e07429c16e1df68f4b04c125c46185eed16 /.config/nvim/lua/quickscope
parent8577c3b7cba714551d3537f3337ee2490bd20106 (diff)
Migration to lua
Diffstat (limited to '.config/nvim/lua/quickscope')
-rw-r--r--.config/nvim/lua/quickscope/init.lua7
1 files changed, 7 insertions, 0 deletions
diff --git a/.config/nvim/lua/quickscope/init.lua b/.config/nvim/lua/quickscope/init.lua
new file mode 100644
index 0000000..4c70669
--- /dev/null
+++ b/.config/nvim/lua/quickscope/init.lua
@@ -0,0 +1,7 @@
+-- Trigger a highlight in the appropriate direction when pressing these keys:
+-- vim.cmd('let g:qs_highlight_on_keys = [\'f\', \'F\', \'t\', \'T\']')
+vim.g.qs_highlight_on_keys = {'f', 'F', 't', 'T'}
+
+vim.api.nvim_exec('highlight QuickScopePrimary guifg=\'#00C7DF\' gui=underline ctermfg=155 cterm=underline', false)
+vim.cmd('highlight QuickScopeSecondary guifg=\'#eF5F70\' gui=underline ctermfg=81 cterm=underline')
+vim.g.qs_max_chars=150