-- Plugin Specific Behavior
-------------------------------------------------------------------------------
-- FZF
-vim.keymap.set('', '<C-P>', ':FZF <CR>')
-vim.g.fzf_layout = { down = '40%' }
-vim.g.fzf_colors = {
- fg = {'fg', 'Normal'},
- bg = {'bg', 'Normal'},
- hl = {'fg', 'Comment'},
- ['fg+'] = {'fg', 'CursorLine', 'CursorColumn', 'Normal'},
- ['bg+'] = {'bg', 'CursorLine', 'CursorColumn'},
- ['hl+'] = {'fg', 'Statement'},
- info = {'fg', 'PreProc'},
- border = {'fg', 'Ignore'},
- prompt = {'fg', 'Conditional'},
- pointer = {'fg', 'Exception'},
- marker = {'fg', 'Keyword'},
- spinner = {'fg', 'Label'},
- header = {'fg', 'Comment'}
-}
-
+vim.keymap.set("n", "<c-P>",
+ "<cmd>lua require('fzf-lua').files({ fzf_opts = {} })<CR>", { silent = true })
-- Svelte Config
vim.g.vim_svelte_plugin_use_typescript = true
--- Limelight / Goyo config
-
-vim.g.limelight_conceal_ctermfg = 'gray'
-vim.g.limelight_conceal_guifg = 'DarkGray'
-
-vim.api.nvim_create_autocmd({'User'}, {
- pattern = 'GoyoEnter',
- command = 'Limelight'
-})
-vim.api.nvim_create_autocmd({'User'}, {
- pattern = 'GoyoLeave',
- command = 'Limelight!'
-})
-
-vim.keymap.set('n', '<leader>i', ':Limelight!!<CR>==')
-vim.keymap.set('i', '<leader>i', '<Esc>:Limelight!!<CR>==gi')
-vim.keymap.set('v', '<leader>i', ':<C-u>Limelight!!<CR>gv=gv')
-vim.keymap.set('n', '<leader>g', ':Goyo<CR>==')
-vim.keymap.set('i', '<leader>g', '<Esc>:Goyo<CR>==gi')
-vim.keymap.set('v', '<leader>g', ':<C-u>Goyo<CR>gv=gv')
-
--- CoC
-vim.keymap.set('i', '<TAB>', 'pumvisible() ? "\\<C-n>" : "\\<TAB>"', {expr = true, silent = true})
-vim.keymap.set('i', '<S-TAB>', 'pumvisible() ? "\\<C-p>" : "\\<C-h>"', {expr = true, silent = true})
-vim.keymap.set('i', '<S-TAB>', 'pumvisible() ? "\\<C-p>" : "\\<C-h>"', {expr = true, silent = true})
-vim.keymap.set('i', '<C-Space>', 'coc#refresh()', {expr = true, silent = true})
-vim.keymap.set('n', 'K', ':call CocActionAsync("doHover")<CR>', {silent = true})
-
-vim.keymap.set('n', '[g', '<Plug>(coc-diagnostic-prev)', {silent = true})
-vim.keymap.set('n', ']g', '<Plug>(coc-diagnostic-next)', {silent = true})
-
-vim.keymap.set('n', 'gd', '<Plug>(coc-definition)', {silent = true})
-vim.keymap.set('n', 'gy', '<Plug>(coc-type-definition)', {silent = true})
-vim.keymap.set('n', 'gi', '<Plug>(coc-implementation)', {silent = true})
-vim.keymap.set('n', 'gr', '<Plug>(coc-references)', {silent = true})
+-- Coq
+vim.g.coq_settings = { auto_start = 'shut-up' }
-- Plugins
require('plugins')
+require('treesitter_config')
+require('lsp')
+require('dap_config')