diff options
Diffstat (limited to '.config/nvim')
-rw-r--r-- | .config/nvim/lua/autocmds.lua | 2 | ||||
-rw-r--r-- | .config/nvim/lua/mappings.lua | 8 | ||||
-rw-r--r-- | .config/nvim/lua/plugin_settings.lua | 31 | ||||
-rw-r--r-- | .config/nvim/lua/settings.lua | 3 |
4 files changed, 36 insertions, 8 deletions
diff --git a/.config/nvim/lua/autocmds.lua b/.config/nvim/lua/autocmds.lua index 90915db..1b8751c 100644 --- a/.config/nvim/lua/autocmds.lua +++ b/.config/nvim/lua/autocmds.lua | |||
@@ -8,7 +8,7 @@ | |||
8 | local au = require('au') | 8 | local au = require('au') |
9 | 9 | ||
10 | au.TextYankPost = function() | 10 | au.TextYankPost = function() |
11 | vim.highlight.on_yank({ higroup = 'Visual', timeout = 120 }) | 11 | vim.highlight.on_yank { higroup="IncSearch", timeout=400 } |
12 | end | 12 | end |
13 | 13 | ||
14 | -- autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/.local/bin/sentences | 14 | -- autocmd FileType vimwiki,latex,tex setlocal formatprg=/home/yigit/.local/bin/sentences |
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua index a7827d4..c898960 100644 --- a/.config/nvim/lua/mappings.lua +++ b/.config/nvim/lua/mappings.lua | |||
@@ -155,7 +155,15 @@ map('n', '<leader>fg', "<cmd>lua require('telescope.builtin').live_grep()<cr>") | |||
155 | map('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>") | 155 | map('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>") |
156 | map('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>") | 156 | map('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>") |
157 | 157 | ||
158 | -- vista | ||
158 | map('n', '<F3>', ":Vista focus<cr>") | 159 | map('n', '<F3>', ":Vista focus<cr>") |
159 | map('n', '<F4>', ":Vista finder<cr>") | 160 | map('n', '<F4>', ":Vista finder<cr>") |
160 | 161 | ||
162 | |||
163 | map('n', '<Leader>fh', ':DashboardFindHistory<CR>') | ||
164 | map('n', '<Leader>ff', ':DashboardFindFile<CR>') | ||
165 | map('n', '<Leader>tc', ':DashboardChangeColorscheme<CR>') | ||
166 | map('n', '<Leader>fa', ':DashboardFindWord<CR>') | ||
167 | map('n', '<Leader>fb', ':DashboardJumpMark<CR>') | ||
168 | map('n', '<Leader>cn', ':DashboardNewFile<CR>') | ||
161 | -- }}} plug mappings -- | 169 | -- }}} plug mappings -- |
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' | |||
225 | g.dashboard_preview_file = '~/.config/nvim/neovim.cat' | 225 | g.dashboard_preview_file = '~/.config/nvim/neovim.cat' |
226 | g.dashboard_preview_file_height = 14 | 226 | g.dashboard_preview_file_height = 14 |
227 | g.dashboard_preview_file_width = 90 | 227 | g.dashboard_preview_file_width = 90 |
228 | |||
229 | g.dashboard_custom_shortcut = { | ||
230 | last_session = '<leader> s l', | ||
231 | find_history = '<leader> f h', | ||
232 | find_file = '<leader> f f', | ||
233 | new_file = '<leader> c n', | ||
234 | change_colorscheme = '<leader> t c', | ||
235 | find_word = '<leader> f a', | ||
236 | book_marks = '<leader> f b', | ||
237 | } | ||
238 | |||
228 | -- }}} dashboard -- | 239 | -- }}} dashboard -- |
229 | 240 | ||
230 | -- treesitter {{{ -- | 241 | -- treesitter {{{ -- |
231 | 242 | ||
232 | require'nvim-treesitter.configs'.setup { | 243 | require 'nvim-treesitter.configs'.setup { |
233 | ensure_installed = "maintained", | 244 | ensure_installed = "maintained", |
234 | ignore_install = { "javascript" }, | ||
235 | highlight = { | 245 | highlight = { |
236 | enable = true, | 246 | enable = true, |
237 | additional_vim_regex_highlighting = false, | 247 | additional_vim_regex_highlighting = false, |
238 | }, | 248 | }, |
249 | incremental_selection = { | ||
250 | enable = true, | ||
251 | keymaps = { | ||
252 | init_selection = "gnn", | ||
253 | node_incremental = "grn", | ||
254 | scope_incremental = "grc", | ||
255 | node_decremental = "grm", | ||
256 | }, | ||
257 | }, | ||
258 | indent = { | ||
259 | enable = true | ||
260 | } | ||
239 | } | 261 | } |
240 | -- }}} treesitter -- | 262 | -- }}} treesitter -- |
241 | 263 | ||
@@ -315,8 +337,7 @@ end | |||
315 | g.vista_icon_indent = {"╰ ", "│ "} | 337 | g.vista_icon_indent = {"╰ ", "│ "} |
316 | -- }}} vista -- | 338 | -- }}} vista -- |
317 | 339 | ||
340 | -- float-preview.nvim {{{ -- | ||
318 | g["float_preview#docked"] = 0 | 341 | g["float_preview#docked"] = 0 |
342 | -- }}} float-preview.nvim -- | ||
319 | 343 | ||
320 | -- highlight on yank | ||
321 | cmd('highlight HighlightedyankRegion cterm=reverse gui=reverse') | ||
322 | g.highlightedyank_highlight_duration = 200 | ||
diff --git a/.config/nvim/lua/settings.lua b/.config/nvim/lua/settings.lua index 7276b0e..1030fdb 100644 --- a/.config/nvim/lua/settings.lua +++ b/.config/nvim/lua/settings.lua | |||
@@ -94,5 +94,4 @@ opt.diffopt = { | |||
94 | 94 | ||
95 | -- menu: use a popup menu to show the possible completions | 95 | -- menu: use a popup menu to show the possible completions |
96 | -- preview: show extra information | 96 | -- preview: show extra information |
97 | opt.completeopt = {"menu", "preview"} | 97 | opt.completeopt = {"menu", "menuone", "noselect"} |
98 | |||