B:BD[
3.25741487] → [
2.1851:1999]
B:BD[
2.4242] → [
2.4243:7350]
B:BD[
3.25744171] → [
2.4242:4242]
∅:D[
2.4240] → [
3.25744167:25744171]
B:BD[
3.25744167] → [
3.25744167:25744171]
B:BD[
3.25744167] → [
2.3841:4240]
B:BD[
3.25743700] → [
3.25743700:25744167]
B:BD[
3.25743606] → [
3.25743606:25743692]
B:BD[
3.25743518] → [
3.25743518:25743605]
B:BD[
3.25743331] → [
3.25743331:25743452]
B:BD[
3.25743206] → [
3.25743206:25743299]
B:BD[
3.25743169] → [
3.25743169:25743205]
B:BD[
3.25743119] → [
3.25743119:25743168]
B:BD[
3.25742898] → [
3.25742898:25743018]
B:BD[
3.25742749] → [
3.25742749:25742811]
B:BD[
3.25742668] → [
3.25742668:25742706]
B:BD[
3.25742552] → [
3.25742552:25742597]
B:BD[
3.25742488] → [
3.25742488:25742533]
B:BD[
3.25742398] → [
3.25742398:25742439]
B:BD[
3.25742336] → [
3.25742336:25742348]
∅:D[
2.3840] → [
3.25742321:25742322]
B:BD[
3.25742321] → [
3.25742321:25742322]
B:BD[
3.25741878] → [
2.3686:3840]
∅:D[
2.3685] → [
3.25741877:25741878]
∅:D[
4.13693] → [
3.25741877:25741878]
B:BD[
3.25741877] → [
3.25741877:25741878]
B:BD[
4.13661] → [
2.3593:3685]
∅:D[
2.3592] → [
4.13660:13661]
B:BD[
4.13660] → [
4.13660:13661]
B:BD[
3.25741540] → [
2.2310:3592]
∅:D[
2.2309] → [
3.25741539:25741540]
∅:D[
4.13457] → [
3.25741539:25741540]
B:BD[
3.25741539] → [
3.25741539:25741540]
B:BD[
5.633] → [
2.2000:2309]
∅:D[
2.1999] → [
5.628:633]
B:BD[
3.25741487] → [
5.628:633]
∅:D[
2.1850] → [
3.25741486:25741487]
B:BD[
3.25741486] → [
3.25741486:25741487]
B:BD[
4.13318] → [
2.1486:1850]
∅:D[
2.1485] → [
4.13317:13318]
B:BD[
3.25740435] → [
4.13317:13318]
B:BD[
4.12271] → [
2.1254:1485]
∅:D[
2.1253] → [
4.12270:12271]
B:BD[
3.25735847] → [
4.12270:12271]
B:BD[
4.12166] → [
2.1113:1253]
∅:D[
2.1112] → [
4.12165:12166]
B:BD[
3.25735291] → [
4.12165:12166]
B:BD[
4.12164] → [
2.384:1112]
∅:D[
2.383] → [
4.12163:12164]
B:BD[
3.25735118] → [
4.12163:12164]
B:BD[
4.9535] → [
2.336:383]
∅:D[
2.335] → [
4.9534:9535]
B:BD[
4.9534] → [
4.9534:9535]
B:BD[
4.9480] → [
2.274:335]
B:BD[
4.9479] → [
4.9479:9480]
B:BD[
3.25729006] → [
3.25729006:25729055]
∅:D[
2.273] → [
3.25728948:25729005]
B:BD[
3.25728948] → [
3.25728948:25729005]
B:BD[
3.25728546] → [
2.189:273]
B:BD[
3.25728514] → [
3.25728514:25728546]
B:BD[
3.25728418] → [
3.25728418:25728468]
∅:D[
2.10444] → [
3.25728391:25728392]
B:BD[
3.25728391] → [
3.25728391:25728392]
B:BD[
3.25728361] → [
2.7351:10444]
∅:D[
2.7350] → [
3.25728357:25728361]
B:BD[
3.25728357] → [
3.25728357:25728361]
vim.pack.add({ 'https://github.com/norcalli/nvim-colorizer.lua' })
require('colorizer').setup(
{ '*', '!TelescopePrompt', '!TelescopeResults' },
vim.pack.add({ 'https://github.com/lewis6991/gitsigns.nvim' })
require('gitsigns').setup({
signs = {
add = { text = '│' },
change = { text = '│' },
delete = { text = '└' },
topdelete = { text = '┌' },
changedelete = { text = '├' },
untracked = { text = '┤' },
},
signs_staged = {
add = { text = '│' },
change = { text = '│' },
delete = { text = '└' },
topdelete = { text = '┌' },
changedelete = { text = '├' },
untracked = { text = '┤' },
},
signs_staged_enable = true,
})
vim.pack.add({ 'https://github.com/Eiko-Tokura/darcssigns.nvim' })
require('darcssigns').setup({
enabled = true,
signs = {
add = { text = '│', hl = 'DarcsSignsAdd' },
change = { text = '│', hl = 'DarcsSignsChange' },
delete = { text = '└', hl = 'DarcsSignsDelete' },
untracked = { text = '┤', hl = 'DarcsSignsUntracked' },
},
})
vim.pack.add({ 'https://github.com/vifm/vifm.vim' })
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.vifm_replace_netrw = 1
vim.g.vifm_replace_netrw_cmd = 'Vifm'
vim.g.vifm_embed_term = 1
vim.keymap.set('n', '<leader>x', '<cmd>Vifm<cr>', opts)
vim.pack.add({ 'https://github.com/stevearc/oil.nvim' })
require('oil').setup({
default_file_explorer = true,
columns = { 'permissions' },
})
vim.keymap.set('n', '<leader>o', '<cmd>Oil<cr>', opts)
-- ------------------------------------------------------------
-- telescope
-- ------------------------------------------------------------
vim.pack.add({
'https://github.com/nvim-lua/plenary.nvim',
'https://github.com/nvim-telescope/telescope-fzf-native.nvim',
'https://github.com/nvim-telescope/telescope.nvim',
})
vim.api.nvim_create_autocmd('PackChanged', {
callback = function(ev)
if ev.data.spec.name == 'telescope-fzf-native.nvim' then
vim.system({ 'make' }, { cwd = ev.data.path })
end
end,
})
local function apply_telescope_highlights()
local highlights = {
TelescopeSelection = { fg = 'none', bg = 'none' },
TelescopeSelectionCaret = { fg = '#79d4d5', bg = 'none' },
TelescopeMultiSelection = { fg = 'none', bg = '#202020' },
TelescopeNormal = { fg = 'none', bg = '#262626' },
TelescopeBorder = { fg = 'none', bg = 'none' },
TelescopePromptBorder = { fg = 'none', bg = '#202020' },
TelescopeResultsBorder = { fg = 'none', bg = '#262626' },
TelescopePreviewBorder = { fg = 'none', bg = '#262626' },
TelescopeMatching = { fg = '#79d4d5', bg = 'none' },
TelescopePromptPrefix = { fg = 'none', bg = 'none' },
TelescopePromptNormal = { fg = 'none', bg = '#202020' },
TelescopePromptTitle = { fg = 'none', bg = 'none' },
TelescopePreviewTitle = { fg = '#262626', bg = 'none' },
TelescopeResultsTitle = { fg = '#202020', bg = 'none' },
}
for hl, col in pairs(highlights) do
vim.api.nvim_set_hl(0, hl, col)
end
]])
let g:auto_save = 0
function BufferAutoSaveToggle()
if exists('b:auto_save')
let b:auto_save = !b:auto_save
else
let b:auto_save = 1
endif
if b:auto_save == 1
echo 'autosave on'
else
echo 'autosave off'
endif
endfunction
command BufferAutoSave call BufferAutoSaveToggle()
nnoremap <leader>a :BufferAutoSave<cr>
let g:yey = 0
function YeyOn()
let g:yey = 1
:nmap j jzz
:nmap k kzz
:nmap G Gzz
:echo 'yey on'
endfunction
function YeyOff()
let g:yey = 0
:unmap j
:unmap k
:unmap G
:echo 'yey off'
endfunction
function YeyToggle()
if g:yey == 0
:call YeyOn()
else
:call YeyOff()
endif
endfunction
command Yey call YeyToggle()
nnoremap <leader>Y :Yey<cr>
endfunction
command Focus call FocusToggle()
nnoremap <leader>O :Focus<cr>
:silent! call YeyOff()
:Goyo!
:echo 'focus off'
endif
:silent! call YeyOn()
:Goyo 120
:echo 'focus on'
else
:silent! call FocusOff()
if g:focused == 1
:silent! call FocusOn()
:silent! call NumbersOff()
let g:focused = 1 - g:focused
let g:focused = 0
function FocusToggle()
let g:limelight_priority = -1
nnoremap <leader>L :Limelight!!<cr>
nnoremap <leader>I :IlluminateToggleBuf<cr>
let g:limelight_bop = '^\n'
let g:limelight_eop = '^\n'
let g:limelight_paragraph_span = 0
let g:limelight_default_coefficient = 1.0
let g:limelight_conceal_guifg = '#666666'
let g:limelight_conceal_ctermfg = 240
vim.cmd([[
vim.pack.add({
'https://github.com/junegunn/goyo.vim',
'https://github.com/junegunn/limelight.vim',
'https://github.com/907th/vim-auto-save',
})
vim.cmd("packadd nvim.undotree")
vim.keymap.set("n", "<leader>u", require("undotree").open)
-- vim.pack.add({ 'https://github.com/mbbill/undotree' })
-- vim.g.undotree_WindowLayout = 2
-- vim.g.undotree_ShortIndicators = 1
-- vim.g.undotree_SplitWidth = 29
-- vim.g.undotree_DiffpanelHeight = 10
-- vim.g.undotree_DiffAutoOpen = 1
-- vim.g.undotree_SetFocusWhenToggle = 1
-- vim.g.undotree_TreeNodeShape = '*'
-- vim.g.undotree_TreeVertShape = '|'
-- vim.g.undotree_TreeSplitShape = '/'
-- vim.g.undotree_TreeReturnShape = '\\'
-- vim.g.undotree_DiffCommand = 'diff -s'
-- vim.g.undotree_RelativeTimestamp = 1
-- vim.g.undotree_HighlightChangedText = 1
-- vim.g.undotree_HighlightChangedWithSign = 1
-- vim.g.undotree_HighlightSyntaxAdd = 'DiffAdd'
-- vim.g.undotree_HighlightSyntaxChange = 'DiffChange'
-- vim.g.undotree_HighlightSyntaxDel = 'DiffDelete'
-- vim.g.undotree_HelpLine = 1
-- vim.g.undotree_CursorLine = 1
-- vim.keymap.set('n', '<leader>u', '<cmd>UndotreeToggle<cr>', opts)
-- vim.keymap.set('n', '<C-w>u', '<cmd>UndotreeShow | UndotreeFocus<cr>', opts)
-- vim.keymap.set('n', '<C-w>U', '<cmd>UndotreeHide<cr>', opts)
-- vim.keymap.set('n', '<C-w><C-u>', '<cmd>UndotreeShow<cr>', opts)
mode = 'background',
RGB = true,
RRGGBB = true,
names = false,
RRGGBBAA = true,
rgb_fn = true,
hsl_fn = true,
css = false,
css_fn = false,
}
)
vim.api.nvim_create_autocmd('TextChanged', { command = 'ColorizerAttachToBuffer' })
{
vim.pack.add({ 'https://github.com/RRethy/vim-illuminate' })
require('illuminate').configure({
providers = { 'lsp', 'treesitter', 'regex' },
delay = 9,
filetypes_denylist = { 'dirbuf', 'dirvish', 'fugitive' },
under_cursor = true,
min_count_to_highlight = 1,
should_enable = function(bufnr) return true end,
case_insensitive_regex = false,
})
vim.pack.add({ 'https://github.com/jiangmiao/auto-pairs' })
vim.g.AutoPairs = { ['('] = ')', ['['] = ']', ['{'] = '}', ['"'] = '"', ['```'] = '```', ['"""'] = '"""', ["'''"] = "'''", ['`'] = '`' }
vim.g.AutoPairsMultilineClose = 0
vim.g.accent_colour = 'cyan'
vim.g.accent_darken = 1
vim.g.accent_invert_status = 0
vim.g.accent_auto_cwd_colour = 1
vim.g.accent_no_bg = 1
-- color schemes
vim.pack.add({
'https://github.com/alligator/accent.vim',
'https://github.com/kadekillary/skull-vim',
'https://github.com/lokaltog/vim-monotone',
'https://github.com/arcticicestudio/nord-vim',
'https://github.com/hardselius/warlock',
'https://github.com/sainnhe/everforest',
'https://github.com/logico/typewriter-vim',
'https://github.com/reedes/vim-colors-pencil',
'https://github.com/junegunn/seoul256.vim',
'https://github.com/sainnhe/gruvbox-material',
'https://github.com/EdenEast/nightfox.nvim',
'https://github.com/nordtheme/vim',
'https://github.com/joshdick/onedark.vim',
'https://github.com/folke/tokyonight.nvim',
'https://github.com/morhetz/gruvbox',
})
local opts = { noremap = true, silent = true }
vim.o.clipboard = 'unnamedplus'
-- vim.o.autocomplete = true
vim.opt.winborder = 'none'
vim.opt.winblend = 10
vim.opt.completeopt = { 'menuone', 'noselect', 'popup' }
vim.opt.undodir = vim.fn.expand('~/.config/nvim/undo')
vim.opt.termguicolors = true
vim.cmd.source('~/.vim/vimrc')
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
apply_telescope_highlights()
vim.api.nvim_create_autocmd('ColorScheme', { callback = apply_telescope_highlights })
local actions = require('telescope.actions')
local action_layout = require('telescope.actions.layout')
require('telescope').setup {
defaults = {
initial_mode = 'insert',
layout_strategy = 'horizontal',
layout_config = {
prompt_position = 'top',
preview_cutoff = 0,
height = 0.9,
width = 0.9,
preview_width = 0.5,
},
sorting_strategy = 'ascending',
scroll_strategy = 'cycle',
file_ignore_patterns = { '.git/[^h]' },
winblend = 0,
previewer = true,
preview = {
treesitter = false,
syntax = true,
},
show_line = false,
prompt_prefix = '',
prompt_title = false,
results_title = false,
selection_strategy = 'reset',
border = {},
borderchars = {
prompt = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
results = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
preview = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
},
default_selection_index = 1,
mappings = {
i = {
['<C-h>'] = actions.which_key,
['<C-j>'] = actions.move_selection_next,
['<C-k>'] = actions.move_selection_previous,
['<C-l>'] = actions.toggle_selection,
['<C-q>'] = actions.close,
['<C-BS>'] = false,
['<C-w>'] = action_layout.toggle_preview,
['<C-u>'] = actions.preview_scrolling_up,
['<C-d>'] = actions.preview_scrolling_down,
['<PageUp>'] = actions.preview_scrolling_up,
['<PageDown>'] = actions.preview_scrolling_down,
['<M-S-,>'] = actions.cycle_history_prev,
['<M-S-.>'] = actions.cycle_history_next,
},
n = {
['?'] = actions.which_key,
['<ESC>'] = actions.close,
['q'] = actions.close,
['w'] = action_layout.toggle_preview,
['<C-u>'] = actions.preview_scrolling_up,
['<C-d>'] = actions.preview_scrolling_down,
['<PageUp>'] = actions.preview_scrolling_up,
['<PageDown>'] = actions.preview_scrolling_down,
},
},
},
pickers = {
colorscheme = { enable_preview = true },
find_files = {
find_command = { 'fd', '-t', 'f', '-H' },
hidden = true,
},
buffers = {
show_all_buffers = true,
sort_lastused = true,
mappings = {
i = { ['<c-d>'] = 'delete_buffer' },
},
},
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = 'smart_case',
},
},
}
end
>>>>>>> 0
vim.pack.add({ 'https://github.com/norcalli/nvim-colorizer.lua' })
require('colorizer').setup(
{ '*', '!TelescopePrompt', '!TelescopeResults' },
vim.pack.add({ 'https://github.com/lewis6991/gitsigns.nvim' })
require('gitsigns').setup({
signs = {
add = { text = '│' },
change = { text = '│' },
delete = { text = '└' },
topdelete = { text = '┌' },
changedelete = { text = '├' },
untracked = { text = '┤' },
},
signs_staged = {
add = { text = '│' },
change = { text = '│' },
delete = { text = '└' },
topdelete = { text = '┌' },
changedelete = { text = '├' },
untracked = { text = '┤' },
},
signs_staged_enable = true,
})
vim.pack.add({ 'https://github.com/Eiko-Tokura/darcssigns.nvim' })
require('darcssigns').setup({
enabled = true,
signs = {
add = { text = '│', hl = 'DarcsSignsAdd' },
change = { text = '│', hl = 'DarcsSignsChange' },
delete = { text = '└', hl = 'DarcsSignsDelete' },
untracked = { text = '┤', hl = 'DarcsSignsUntracked' },
},
})
vim.pack.add({ 'https://github.com/vifm/vifm.vim' })
vim.g.loaded_netrw = 1
vim.g.loaded_netrwPlugin = 1
vim.g.vifm_replace_netrw = 1
vim.g.vifm_replace_netrw_cmd = 'Vifm'
vim.g.vifm_embed_term = 1
vim.keymap.set('n', '<leader>x', '<cmd>Vifm<cr>', opts)
vim.pack.add({ 'https://github.com/stevearc/oil.nvim' })
require('oil').setup({
default_file_explorer = true,
columns = { 'permissions' },
})
vim.keymap.set('n', '<leader>o', '<cmd>Oil<cr>', opts)
-- ------------------------------------------------------------
-- telescope
-- ------------------------------------------------------------
vim.pack.add({
'https://github.com/nvim-lua/plenary.nvim',
'https://github.com/nvim-telescope/telescope-fzf-native.nvim',
'https://github.com/nvim-telescope/telescope.nvim',
})
vim.api.nvim_create_autocmd('PackChanged', {
callback = function(ev)
if ev.data.spec.name == 'telescope-fzf-native.nvim' then
vim.system({ 'make' }, { cwd = ev.data.path })
end
end,
})
local function apply_telescope_highlights()
local highlights = {
TelescopeSelection = { fg = 'none', bg = 'none' },
TelescopeSelectionCaret = { fg = '#79d4d5', bg = 'none' },
TelescopeMultiSelection = { fg = 'none', bg = '#202020' },
TelescopeNormal = { fg = 'none', bg = '#262626' },
TelescopeBorder = { fg = 'none', bg = 'none' },
TelescopePromptBorder = { fg = 'none', bg = '#202020' },
TelescopeResultsBorder = { fg = 'none', bg = '#262626' },
TelescopePreviewBorder = { fg = 'none', bg = '#262626' },
TelescopeMatching = { fg = '#79d4d5', bg = 'none' },
TelescopePromptPrefix = { fg = 'none', bg = 'none' },
TelescopePromptNormal = { fg = 'none', bg = '#202020' },
TelescopePromptTitle = { fg = 'none', bg = 'none' },
TelescopePreviewTitle = { fg = '#262626', bg = 'none' },
TelescopeResultsTitle = { fg = '#202020', bg = 'none' },
}
for hl, col in pairs(highlights) do
vim.api.nvim_set_hl(0, hl, col)
end
]])
let g:auto_save = 0
function BufferAutoSaveToggle()
if exists('b:auto_save')
let b:auto_save = !b:auto_save
else
let b:auto_save = 1
endif
if b:auto_save == 1
echo 'autosave on'
else
echo 'autosave off'
endif
endfunction
command BufferAutoSave call BufferAutoSaveToggle()
nnoremap <leader>a :BufferAutoSave<cr>
let g:yey = 0
function YeyOn()
let g:yey = 1
:nmap j jzz
:nmap k kzz
:nmap G Gzz
:echo 'yey on'
endfunction
function YeyOff()
let g:yey = 0
:unmap j
:unmap k
:unmap G
:echo 'yey off'
endfunction
function YeyToggle()
if g:yey == 0
:call YeyOn()
else
:call YeyOff()
endif
endfunction
command Yey call YeyToggle()
nnoremap <leader>Y :Yey<cr>
endfunction
command Focus call FocusToggle()
nnoremap <leader>O :Focus<cr>
:silent! call YeyOff()
:Goyo!
:echo 'focus off'
endif
:silent! call YeyOn()
:Goyo 120
:echo 'focus on'
else
:silent! call FocusOff()
if g:focused == 1
:silent! call FocusOn()
:silent! call NumbersOff()
let g:focused = 1 - g:focused
let g:focused = 0
function FocusToggle()
let g:limelight_priority = -1
nnoremap <leader>L :Limelight!!<cr>
nnoremap <leader>I :IlluminateToggleBuf<cr>
let g:limelight_bop = '^\n'
let g:limelight_eop = '^\n'
let g:limelight_paragraph_span = 0
let g:limelight_default_coefficient = 1.0
let g:limelight_conceal_guifg = '#666666'
let g:limelight_conceal_ctermfg = 240
vim.cmd([[
vim.pack.add({
'https://github.com/junegunn/goyo.vim',
'https://github.com/junegunn/limelight.vim',
'https://github.com/907th/vim-auto-save',
})
vim.cmd("packadd nvim.undotree")
vim.keymap.set("n", "<leader>u", require("undotree").open)
-- vim.pack.add({ 'https://github.com/mbbill/undotree' })
-- vim.g.undotree_WindowLayout = 2
-- vim.g.undotree_ShortIndicators = 1
-- vim.g.undotree_SplitWidth = 29
-- vim.g.undotree_DiffpanelHeight = 10
-- vim.g.undotree_DiffAutoOpen = 1
-- vim.g.undotree_SetFocusWhenToggle = 1
-- vim.g.undotree_TreeNodeShape = '*'
-- vim.g.undotree_TreeVertShape = '|'
-- vim.g.undotree_TreeSplitShape = '/'
-- vim.g.undotree_TreeReturnShape = '\\'
-- vim.g.undotree_DiffCommand = 'diff -s'
-- vim.g.undotree_RelativeTimestamp = 1
-- vim.g.undotree_HighlightChangedText = 1
-- vim.g.undotree_HighlightChangedWithSign = 1
-- vim.g.undotree_HighlightSyntaxAdd = 'DiffAdd'
-- vim.g.undotree_HighlightSyntaxChange = 'DiffChange'
-- vim.g.undotree_HighlightSyntaxDel = 'DiffDelete'
-- vim.g.undotree_HelpLine = 1
-- vim.g.undotree_CursorLine = 1
-- vim.keymap.set('n', '<leader>u', '<cmd>UndotreeToggle<cr>', opts)
-- vim.keymap.set('n', '<C-w>u', '<cmd>UndotreeShow | UndotreeFocus<cr>', opts)
-- vim.keymap.set('n', '<C-w>U', '<cmd>UndotreeHide<cr>', opts)
-- vim.keymap.set('n', '<C-w><C-u>', '<cmd>UndotreeShow<cr>', opts)
mode = 'background',
RGB = true,
RRGGBB = true,
names = false,
RRGGBBAA = true,
rgb_fn = true,
hsl_fn = true,
css = false,
css_fn = false,
}
)
vim.api.nvim_create_autocmd('TextChanged', { command = 'ColorizerAttachToBuffer' })
{
vim.pack.add({ 'https://github.com/RRethy/vim-illuminate' })
require('illuminate').configure({
providers = { 'lsp', 'treesitter', 'regex' },
delay = 9,
filetypes_denylist = { 'dirbuf', 'dirvish', 'fugitive' },
under_cursor = true,
min_count_to_highlight = 1,
should_enable = function(bufnr) return true end,
case_insensitive_regex = false,
})
vim.pack.add({ 'https://github.com/jiangmiao/auto-pairs' })
vim.g.AutoPairs = { ['('] = ')', ['['] = ']', ['{'] = '}', ['"'] = '"', ['```'] = '```', ['"""'] = '"""', ["'''"] = "'''", ['`'] = '`' }
vim.g.AutoPairsMultilineClose = 0
vim.g.accent_colour = 'cyan'
vim.g.accent_darken = 1
vim.g.accent_invert_status = 0
vim.g.accent_auto_cwd_colour = 1
vim.g.accent_no_bg = 1
-- color schemes
vim.pack.add({
'https://github.com/alligator/accent.vim',
'https://github.com/kadekillary/skull-vim',
'https://github.com/lokaltog/vim-monotone',
'https://github.com/arcticicestudio/nord-vim',
'https://github.com/hardselius/warlock',
'https://github.com/sainnhe/everforest',
'https://github.com/logico/typewriter-vim',
'https://github.com/reedes/vim-colors-pencil',
'https://github.com/junegunn/seoul256.vim',
'https://github.com/sainnhe/gruvbox-material',
'https://github.com/EdenEast/nightfox.nvim',
'https://github.com/nordtheme/vim',
'https://github.com/joshdick/onedark.vim',
'https://github.com/folke/tokyonight.nvim',
'https://github.com/morhetz/gruvbox',
})
local opts = { noremap = true, silent = true }
vim.o.clipboard = 'unnamedplus'
-- vim.o.autocomplete = true
vim.opt.winborder = 'none'
vim.opt.winblend = 10
vim.opt.completeopt = { 'menuone', 'noselect', 'popup' }
vim.opt.undodir = vim.fn.expand('~/.config/nvim/undo')
vim.opt.termguicolors = true
vim.cmd.source('~/.vim/vimrc')
vim.g.mapleader = ' '
vim.g.maplocalleader = ' '
apply_telescope_highlights()
vim.api.nvim_create_autocmd('ColorScheme', { callback = apply_telescope_highlights })
local actions = require('telescope.actions')
local action_layout = require('telescope.actions.layout')
require('telescope').setup {
defaults = {
initial_mode = 'insert',
layout_strategy = 'horizontal',
layout_config = {
prompt_position = 'top',
preview_cutoff = 0,
height = 0.9,
width = 0.9,
preview_width = 0.5,
},
sorting_strategy = 'ascending',
scroll_strategy = 'cycle',
file_ignore_patterns = { '.git/[^h]' },
winblend = 0,
previewer = true,
preview = {
treesitter = false,
syntax = true,
},
show_line = false,
prompt_prefix = '',
prompt_title = false,
results_title = false,
selection_strategy = 'reset',
border = {},
borderchars = {
prompt = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
results = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
preview = { ' ', ' ', ' ', ' ', ' ', ' ', ' ', ' ' },
},
default_selection_index = 1,
mappings = {
i = {
['<C-h>'] = actions.which_key,
['<C-j>'] = actions.move_selection_next,
['<C-k>'] = actions.move_selection_previous,
['<C-l>'] = actions.toggle_selection,
['<C-q>'] = actions.close,
['<C-BS>'] = false,
['<C-w>'] = action_layout.toggle_preview,
['<C-u>'] = actions.preview_scrolling_up,
['<C-d>'] = actions.preview_scrolling_down,
['<PageUp>'] = actions.preview_scrolling_up,
['<PageDown>'] = actions.preview_scrolling_down,
['<M-S-,>'] = actions.cycle_history_prev,
['<M-S-.>'] = actions.cycle_history_next,
},
n = {
['?'] = actions.which_key,
['<ESC>'] = actions.close,
['q'] = actions.close,
['w'] = action_layout.toggle_preview,
['<C-u>'] = actions.preview_scrolling_up,
['<C-d>'] = actions.preview_scrolling_down,
['<PageUp>'] = actions.preview_scrolling_up,
['<PageDown>'] = actions.preview_scrolling_down,
},
},
},
pickers = {
colorscheme = { enable_preview = true },
find_files = {
find_command = { 'fd', '-t', 'f', '-H' },
hidden = true,
},
buffers = {
show_all_buffers = true,
sort_lastused = true,
mappings = {
i = { ['<c-d>'] = 'delete_buffer' },
},
},
},
extensions = {
fzf = {
fuzzy = true,
override_generic_sorter = true,
override_file_sorter = true,
case_mode = 'smart_case',
},
},
}
end
<<<<<<< 0