From fb734f9e03eea1726139ea359dcdca5357b4961c Mon Sep 17 00:00:00 2001 From: Yigit Sever Date: Tue, 12 Oct 2021 16:19:52 +0300 Subject: nvim: daily love --- .config/nvim/lua/plugin_settings.lua | 31 ++++++++++++++++++++++++++----- 1 file changed, 26 insertions(+), 5 deletions(-) (limited to '.config/nvim/lua/plugin_settings.lua') diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua index f5caac6..4accdd2 100644 --- a/.config/nvim/lua/plugin_settings.lua +++ b/.config/nvim/lua/plugin_settings.lua @@ -225,17 +225,39 @@ g.dashboard_preview_pipeline = 'lolcat' g.dashboard_preview_file = '~/.config/nvim/neovim.cat' g.dashboard_preview_file_height = 14 g.dashboard_preview_file_width = 90 + +g.dashboard_custom_shortcut = { + last_session = ' s l', + find_history = ' f h', + find_file = ' f f', + new_file = ' c n', + change_colorscheme = ' t c', + find_word = ' f a', + book_marks = ' f b', +} + -- }}} dashboard -- -- treesitter {{{ -- -require'nvim-treesitter.configs'.setup { +require 'nvim-treesitter.configs'.setup { ensure_installed = "maintained", - ignore_install = { "javascript" }, highlight = { enable = true, additional_vim_regex_highlighting = false, }, + incremental_selection = { + enable = true, + keymaps = { + init_selection = "gnn", + node_incremental = "grn", + scope_incremental = "grc", + node_decremental = "grm", + }, + }, + indent = { + enable = true + } } -- }}} treesitter -- @@ -315,8 +337,7 @@ end g.vista_icon_indent = {"╰ ", "│ "} -- }}} vista -- +-- float-preview.nvim {{{ -- g["float_preview#docked"] = 0 +-- }}} float-preview.nvim -- --- highlight on yank -cmd('highlight HighlightedyankRegion cterm=reverse gui=reverse') -g.highlightedyank_highlight_duration = 200 -- cgit v1.2.3-70-g09d2