summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYigit Sever2023-05-13 13:02:22 +0300
committerYigit Sever2023-05-13 13:02:22 +0300
commit4747f73c04ead91e4147b7946a97658899a9526f (patch)
treee0d423af42745327457bbc51ed56c348f03bed8e
parent004ed90c2e666461452f702cfdcbbb9222cff9a4 (diff)
downloaddotfiles-4747f73c04ead91e4147b7946a97658899a9526f.tar.gz
dotfiles-4747f73c04ead91e4147b7946a97658899a9526f.tar.bz2
dotfiles-4747f73c04ead91e4147b7946a97658899a9526f.zip
nvim: purge vista.vim
-rw-r--r--.config/nvim/after/plugin/autocmds.vim3
-rw-r--r--.config/nvim/lua/mappings.lua4
-rw-r--r--.config/nvim/lua/plugin_settings.lua4
-rw-r--r--.config/nvim/lua/plugins.lua2
-rw-r--r--.config/nvim/my_snippets/c.snippets4
5 files changed, 0 insertions, 17 deletions
diff --git a/.config/nvim/after/plugin/autocmds.vim b/.config/nvim/after/plugin/autocmds.vim
index c953a24..05b7ce9 100644
--- a/.config/nvim/after/plugin/autocmds.vim
+++ b/.config/nvim/after/plugin/autocmds.vim
@@ -12,6 +12,3 @@ autocmd BufReadPost *
12 \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit' 12 \ if line("'\"") >= 1 && line("'\"") <= line("$") && &ft !~# 'commit'
13 \ | exe "normal! g`\"" 13 \ | exe "normal! g`\""
14 \ | endif 14 \ | endif
15
16" Currently for one c snippet, but can embed into lualine
17autocmd VimEnter * call vista#RunForNearestMethodOrFunction()
diff --git a/.config/nvim/lua/mappings.lua b/.config/nvim/lua/mappings.lua
index 8744032..adc68a9 100644
--- a/.config/nvim/lua/mappings.lua
+++ b/.config/nvim/lua/mappings.lua
@@ -128,10 +128,6 @@ vim.keymap.set('n', '<leader>fg', "<cmd>lua require('telescope.builtin').live_gr
128vim.keymap.set('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>") 128vim.keymap.set('n', '<leader>fb', "<cmd>lua require('telescope.builtin').buffers()<cr>")
129vim.keymap.set('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>") 129vim.keymap.set('n', '<leader>fh', "<cmd>lua require('telescope.builtin').help_tags()<cr>")
130 130
131-- vista
132vim.keymap.set('n', '<F3>', ":Vista focus<cr>")
133vim.keymap.set('n', '<F4>', ":Vista finder<cr>")
134
135-- nvim tree mappings 131-- nvim tree mappings
136vim.keymap.set('n', 'vt', ':NvimTreeToggle<CR>') 132vim.keymap.set('n', 'vt', ':NvimTreeToggle<CR>')
137vim.keymap.set('n', 'vr', ':NvimTreeRefresh<CR>') 133vim.keymap.set('n', 'vr', ':NvimTreeRefresh<CR>')
diff --git a/.config/nvim/lua/plugin_settings.lua b/.config/nvim/lua/plugin_settings.lua
index 685dee4..d5a4980 100644
--- a/.config/nvim/lua/plugin_settings.lua
+++ b/.config/nvim/lua/plugin_settings.lua
@@ -430,10 +430,6 @@ require('rust-tools').setup(rust_opts)
430 430
431-- }}} nvim-lsp -- 431-- }}} nvim-lsp --
432 432
433-- vista {{{ --
434g.vista_icon_indent = {"╰ ", "│ "}
435-- }}} vista --
436
437-- indent-blankline {{{ -- 433-- indent-blankline {{{ --
438vim.opt.list = true 434vim.opt.list = true
439 435
diff --git a/.config/nvim/lua/plugins.lua b/.config/nvim/lua/plugins.lua
index 8848528..c423e8f 100644
--- a/.config/nvim/lua/plugins.lua
+++ b/.config/nvim/lua/plugins.lua
@@ -94,8 +94,6 @@ return require('packer').startup(function(use)
94 94
95 -- file explorer 95 -- file explorer
96 use 'kyazdani42/nvim-tree.lua' 96 use 'kyazdani42/nvim-tree.lua'
97 -- viewer & finder for lsp symbols and tags
98 use 'liuchengxu/vista.vim'
99 97
100 -- undo tree 98 -- undo tree
101 use { 99 use {
diff --git a/.config/nvim/my_snippets/c.snippets b/.config/nvim/my_snippets/c.snippets
index d4522f2..524b47f 100644
--- a/.config/nvim/my_snippets/c.snippets
+++ b/.config/nvim/my_snippets/c.snippets
@@ -6,7 +6,3 @@ if (${1:true}) {
6 ${0:{VISUAL}} 6 ${0:{VISUAL}}
7} 7}
8endsnippet 8endsnippet
9
10snippet trace "printf trace baby" b
11printf("TRACE: ${1} (`!v b:vista_nearest_method_or_function`:`!v line(".")`)\n"${2});$0
12endsnippet