summaryrefslogtreecommitdiffstats
path: root/.config/nvim/lua
diff options
context:
space:
mode:
authorYigit Sever2021-10-12 16:19:52 +0300
committerYigit Sever2021-10-12 16:19:52 +0300
commitfb734f9e03eea1726139ea359dcdca5357b4961c (patch)
tree24472c0b273be3105d5814a69c151c5f5cda1227 /.config/nvim/lua
parent98cce052b661b8740cba0f63a9a42690884c502d (diff)
downloaddotfiles-fb734f9e03eea1726139ea359dcdca5357b4961c.tar.gz
dotfiles-fb734f9e03eea1726139ea359dcdca5357b4961c.tar.bz2
dotfiles-fb734f9e03eea1726139ea359dcdca5357b4961c.zip
nvim: daily love
Diffstat (limited to '.config/nvim/lua')
-rw-r--r--.config/nvim/lua/autocmds.lua2
-rw-r--r--.config/nvim/lua/mappings.lua8
-rw-r--r--.config/nvim/lua/plugin_settings.lua31
-rw-r--r--.config/nvim/lua/settings.lua3
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 @@
8local au = require('au') 8local au = require('au')
9 9
10au.TextYankPost = function() 10au.TextYankPost = function()
11 vim.highlight.on_yank({ higroup = 'Visual', timeout = 120 }) 11 vim.highlight.on_yank { higroup="IncSearch", timeout=400 }
12end 12end
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>")
155map('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>") 155map('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>")
156map('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>") 156map('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>")
157 157
158-- vista
158map('n', '<F3>', ":Vista focus<cr>") 159map('n', '<F3>', ":Vista focus<cr>")
159map('n', '<F4>', ":Vista finder<cr>") 160map('n', '<F4>', ":Vista finder<cr>")
160 161
162
163map('n', '<Leader>fh', ':DashboardFindHistory<CR>')
164map('n', '<Leader>ff', ':DashboardFindFile<CR>')
165map('n', '<Leader>tc', ':DashboardChangeColorscheme<CR>')
166map('n', '<Leader>fa', ':DashboardFindWord<CR>')
167map('n', '<Leader>fb', ':DashboardJumpMark<CR>')
168map('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'
225g.dashboard_preview_file = '~/.config/nvim/neovim.cat' 225g.dashboard_preview_file = '~/.config/nvim/neovim.cat'
226g.dashboard_preview_file_height = 14 226g.dashboard_preview_file_height = 14
227g.dashboard_preview_file_width = 90 227g.dashboard_preview_file_width = 90
228
229g.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
232require'nvim-treesitter.configs'.setup { 243require '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
315g.vista_icon_indent = {"╰ ", "│ "} 337g.vista_icon_indent = {"╰ ", "│ "}
316-- }}} vista -- 338-- }}} vista --
317 339
340-- float-preview.nvim {{{ --
318g["float_preview#docked"] = 0 341g["float_preview#docked"] = 0
342-- }}} float-preview.nvim --
319 343
320-- highlight on yank
321cmd('highlight HighlightedyankRegion cterm=reverse gui=reverse')
322g.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
97opt.completeopt = {"menu", "preview"} 97opt.completeopt = {"menu", "menuone", "noselect"}
98