Compare commits
No commits in common. "5afe069edf999204507363beefdbaa630c55ef54" and "1bb976d4423a5eb00a9ab5caa45c22292f6f908f" have entirely different histories.
5afe069edf
...
1bb976d442
|
@ -1,16 +0,0 @@
|
||||||
local fzf = require("fzf-lua")
|
|
||||||
|
|
||||||
fzf.setup({ "max-perf" })
|
|
||||||
|
|
||||||
vim.keymap.set("n", "<leader>f<leader>", fzf.builtin) -- Help
|
|
||||||
vim.keymap.set("n", "<leader>fc", fzf.commands)
|
|
||||||
vim.keymap.set("n", "<leader>ff", fzf.files)
|
|
||||||
vim.keymap.set("n", "<leader>fg", fzf.live_grep_native)
|
|
||||||
vim.keymap.set("n", "<leader>fb", fzf.buffers)
|
|
||||||
vim.keymap.set("n", "<leader>fd", fzf.diagnostics_workspace)
|
|
||||||
vim.keymap.set("n", "<leader>fhe", fzf.help_tags)
|
|
||||||
vim.keymap.set("n", "<leader>fhi", fzf.search_history)
|
|
||||||
vim.keymap.set("n", "<leader>fma", fzf.marks)
|
|
||||||
vim.keymap.set("n", "<leader>fma", fzf.man_pages)
|
|
||||||
|
|
||||||
vim.keymap.set("i", "<c-f>", fzf.complete_path)
|
|
|
@ -1,6 +1,4 @@
|
||||||
require("image").setup({
|
require("image").setup({
|
||||||
backend = "kitty",
|
|
||||||
kitty_method = "normal",
|
|
||||||
processor = "magick_cli",
|
processor = "magick_cli",
|
||||||
integrations = {
|
integrations = {
|
||||||
markdown = {
|
markdown = {
|
||||||
|
|
|
@ -1,15 +0,0 @@
|
||||||
-- NOTE: May want to move this, as it is more specific to wiki than to pandoc
|
|
||||||
vim.api.nvim_create_user_command("AnkiDeck", function()
|
|
||||||
local handle = io.popen("get-anki-decks")
|
|
||||||
local decks = {}
|
|
||||||
for line in handle:lines() do
|
|
||||||
table.insert(decks, line)
|
|
||||||
end
|
|
||||||
handle:close()
|
|
||||||
|
|
||||||
vim.ui.select(decks, { prompt = "Select Anki deck" }, function(choice)
|
|
||||||
if choice then
|
|
||||||
vim.api.nvim_put({ choice }, "", true, true)
|
|
||||||
end
|
|
||||||
end)
|
|
||||||
end, {})
|
|
|
@ -2,7 +2,4 @@ vim.filetype.add({
|
||||||
filename = {
|
filename = {
|
||||||
[".lintstagedrc"] = "json",
|
[".lintstagedrc"] = "json",
|
||||||
},
|
},
|
||||||
pattern = {
|
|
||||||
[".*/%.ssh/config%.d/.*"] = "sshconfig",
|
|
||||||
},
|
|
||||||
})
|
})
|
||||||
|
|
|
@ -49,8 +49,10 @@ bootstrap_paq({
|
||||||
{ "hrsh7th/cmp-nvim-lsp" },
|
{ "hrsh7th/cmp-nvim-lsp" },
|
||||||
{ "hrsh7th/cmp-buffer" },
|
{ "hrsh7th/cmp-buffer" },
|
||||||
{ "hrsh7th/cmp-path" },
|
{ "hrsh7th/cmp-path" },
|
||||||
|
{ "stevearc/dressing.nvim" },
|
||||||
{ "nvim-lua/plenary.nvim" },
|
{ "nvim-lua/plenary.nvim" },
|
||||||
{ "MunifTanjim/nui.nvim" },
|
{ "MunifTanjim/nui.nvim" },
|
||||||
|
{ "nvim-telescope/telescope.nvim" },
|
||||||
{ "folke/trouble.nvim" },
|
{ "folke/trouble.nvim" },
|
||||||
{ "rktjmp/shipwright.nvim" }, -- For building themes based on lush (e.g. terminal)
|
{ "rktjmp/shipwright.nvim" }, -- For building themes based on lush (e.g. terminal)
|
||||||
{ "rktjmp/lush.nvim" },
|
{ "rktjmp/lush.nvim" },
|
||||||
|
|
|
@ -1 +0,0 @@
|
||||||
Include config.d/*
|
|
|
@ -0,0 +1,18 @@
|
||||||
|
" FZF
|
||||||
|
nn <c-p> :FZF<cr>
|
||||||
|
nn <leader>p :FZF<cr>
|
||||||
|
nn <leader>b :Buffers<cr>
|
||||||
|
nn <leader>h :History<cr>
|
||||||
|
let g:fzf_action = {
|
||||||
|
\ 'ctrl-t': 'tab split',
|
||||||
|
\ 'ctrl-s': 'split',
|
||||||
|
\ 'ctrl-v': 'vsplit'
|
||||||
|
\}
|
||||||
|
|
||||||
|
" Insert path completion
|
||||||
|
" ino <expr><c-f> fzf#vim#complete#path('ag -l -g *.md')
|
||||||
|
" ino <c-f> <plug>(fzf-complete-file-ag)
|
||||||
|
ino <expr><c-f> fzf#vim#complete#path("ag -l -g '' \| sed -e 's/\.md$//'")
|
||||||
|
" Use `the_silver_searcher` to find results (for selection if selection)
|
||||||
|
nn <leader>f :Ag<cr>
|
||||||
|
vm <leader>f :Ag <C-r>"<cr>
|
|
@ -17,3 +17,9 @@ func! GetContext()
|
||||||
endif
|
endif
|
||||||
endfunc
|
endfunc
|
||||||
com! -nargs=0 GetContext :call GetContext()
|
com! -nargs=0 GetContext :call GetContext()
|
||||||
|
|
||||||
|
function! Put(str)
|
||||||
|
put = a:str
|
||||||
|
endfunction
|
||||||
|
|
||||||
|
com! -nargs=0 AnkiDeck call fzf#run(fzf#wrap({'source': 'get-anki-decks', 'sink': function('Put')}))
|
||||||
|
|
|
@ -11,6 +11,9 @@ Plug 'editorconfig/editorconfig-vim'
|
||||||
Plug 'honza/vim-snippets'
|
Plug 'honza/vim-snippets'
|
||||||
Plug 'chrisbra/unicode.vim'
|
Plug 'chrisbra/unicode.vim'
|
||||||
Plug 'ap/vim-css-color'
|
Plug 'ap/vim-css-color'
|
||||||
|
" Fzf
|
||||||
|
Plug 'junegunn/fzf', { 'do': { -> fzf#install() } }
|
||||||
|
Plug 'junegunn/fzf.vim'
|
||||||
" JS and TypeScript
|
" JS and TypeScript
|
||||||
Plug 'pangloss/vim-javascript', { 'for': ['javascript', 'javascript.jsx'] }
|
Plug 'pangloss/vim-javascript', { 'for': ['javascript', 'javascript.jsx'] }
|
||||||
Plug 'leafgarland/typescript-vim', { 'for': ['typescript', 'typescript.tsx'] }
|
Plug 'leafgarland/typescript-vim', { 'for': ['typescript', 'typescript.tsx'] }
|
||||||
|
|
Loading…
Reference in New Issue