Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
shun095 committed Jan 23, 2025
1 parent cbcaa51 commit c256001
Show file tree
Hide file tree
Showing 4 changed files with 25 additions and 15 deletions.
2 changes: 1 addition & 1 deletion vim/autoload/mymisc/config/fern.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ fun! mymisc#config#fern#setup() abort
nno <buffer> <Leader>e :<C-u>Fern<Space>
nno <silent> <buffer> ~ <Cmd>Fern ~<CR>
nno <silent> <buffer> q <Cmd>close<CR>
nmap <silent> <buffer> cd <Plug>(fern-action-cd)
nmap <silent> <buffer> cd <Plug>(fern-action-tcd)
nmap <silent> <buffer> <CR> <Plug>(fern-action-open-or-enter)
nmap <silent> <buffer> <2-LeftMouse> <Plug>(fern-action-open-or-expand)
nmap <silent> <buffer> <2-RightMouse> <Plug>(fern-action-collapse)
Expand Down
3 changes: 2 additions & 1 deletion vim/autoload/mymisc/config/memolist.vim
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,8 @@ fun! mymisc#config#memolist#setup() abort
if mymisc#startup#plug_tap('defx.nvim')
nno <Leader>ml :<C-u>execute "Defx " . expand(g:memolist_path)<CR>
elseif mymisc#startup#plug_tap('fern.vim')
nno <Leader>ml :<C-u>execute "Fern ~/" . " -drawer -reveal=" . expand(g:memolist_path) . "/todo.txt"<CR>
execute "tcd " . expand(g:memolist_path)
nno <Leader>ml :<C-u>execute "Fern " . expand(g:memolist_path) . " -drawer -reveal=" . expand(g:memolist_path) . "/todo.txt"<CR>
else
nno <Leader>ml :<C-u>MemoList<CR>
endif
Expand Down
34 changes: 21 additions & 13 deletions vim/init.lua
Original file line number Diff line number Diff line change
Expand Up @@ -633,20 +633,23 @@ require('telescope').setup {
require('telescope').load_extension('fzf')
require("telescope").load_extension("ui-select")
require("telescope").load_extension("noice")
require('telescope').load_extension 'telescope-tabs'
require('telescope-tabs').setup {}

-- vim.cmd('nno <Leader><Leader> :<C-u>Telescope git_files<CR>')
vim.cmd('nno <Leader><Leader> :<C-u>Telescope git_files<CR>')
vim.cmd('nno <Leader>T :<C-u>Telescope tags<CR>')
vim.cmd('nno <Leader>al :<C-u>Telescope grep_string search=<CR>')
vim.cmd('nno <Leader>b :<C-u>Telescope buffers<CR>')
vim.cmd('nno <Leader>c :<C-u>Telescope find_files<CR>')
vim.cmd('nno <Leader>f :<C-u>Telescope git_files<CR>')
vim.cmd('nno <Leader><Leader> :<Cmd>Telescope git_files<CR>')
vim.cmd('nno <Leader>T :<Cmd>Telescope tags<CR>')
vim.cmd('nno <Leader>al :<Cmd>Telescope grep_string search=<CR>')
vim.cmd('nno <Leader>b :<Cmd>Telescope buffers<CR>')
vim.cmd('nno <Leader><C-t> :<Cmd>Telescope telescope-tabs list_tabs<CR>')
vim.cmd('nno <Leader>c :<Cmd>Telescope find_files<CR>')
vim.cmd('nno <Leader>f :<Cmd>Telescope git_files<CR>')
vim.cmd('nno <Leader>gr :<C-u>Telescope grep_string search=')
vim.cmd('nno <Leader>l :<C-u>Telescope current_buffer_fuzzy_find<CR>')
vim.cmd('nno <Leader>o :<C-u>Telescope current_buffer_tags<CR>')
vim.cmd('nno <Leader>r :<C-u>Telescope registers<CR>')
vim.cmd('nno <Leader>u :<C-u>Telescope oldfiles<CR>')
vim.cmd('nno <Leader>` :<C-u>Telescope marks<CR>')
vim.cmd('nno <Leader>l :<Cmd>Telescope current_buffer_fuzzy_find<CR>')
vim.cmd('nno <Leader>o :<Cmd>Telescope current_buffer_tags<CR>')
vim.cmd('nno <Leader>r :<Cmd>Telescope registers<CR>')
vim.cmd('nno <Leader>u :<Cmd>Telescope oldfiles<CR>')
vim.cmd('nno <Leader>` :<Cmd>Telescope marks<CR>')

-- require("hlchunk").setup({})

Expand Down Expand Up @@ -709,7 +712,7 @@ require('numb').setup()
require("bufferline").setup {
options = {
mode = "tabs", -- set to "tabs" to only show tabpages instead
separator_style = "slope",
separator_style = "slant",
indicator = {
style = 'none'
},
Expand All @@ -726,7 +729,12 @@ require("bufferline").setup {
highlight = "Directory",
separator = true -- use a "true" to enable the default, or set your own character
}
}
},
-- highlights = {
-- fill = {
-- link = "StatusLineNC"
-- }
-- },
}
}
require('lualine').setup {
Expand Down
1 change: 1 addition & 0 deletions vim/scripts/plugin_mgr/plugin-list.vim
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,7 @@ else
" Plug 'j-hui/fidget.nvim'
Plug 'nvim-lua/plenary.nvim'
Plug 'nvim-telescope/telescope.nvim', { 'tag': '0.1.8' }
Plug 'LukasPietzschmann/telescope-tabs'
if executable('cmake')
Plug 'nvim-telescope/telescope-fzf-native.nvim', { 'do': 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release' }
elseif executable('make')
Expand Down

0 comments on commit c256001

Please sign in to comment.