modofied configs

This commit is contained in:
Jeremie Fraeys 2023-11-25 02:23:27 -05:00
parent 6b3424c590
commit 00e032f378
34 changed files with 37 additions and 11 deletions

0
.DS_Store vendored Normal file → Executable file
View File

0
.github/ISSUE_TEMPLATE/bug_report.md vendored Normal file → Executable file
View File

0
.gitignore vendored Normal file → Executable file
View File

0
.stylua.toml Normal file → Executable file
View File

0
LICENSE.md Normal file → Executable file
View File

0
README.md Normal file → Executable file
View File

0
doc/kickstart.txt Normal file → Executable file
View File

0
doc/tags Normal file → Executable file
View File

0
init.lua Normal file → Executable file
View File

23
lua/config/mappings.lua Normal file → Executable file
View File

@ -54,6 +54,7 @@ vim.keymap.set('n', '<leader>/', function()
winblend = 10, winblend = 10,
previewer = false, previewer = false,
}) })
-- require('telescope.builtin').current_buffer_fuzzy_find(require('telescope.themes'))
end, { desc = '[/] Fuzzily search in current buffer' }) end, { desc = '[/] Fuzzily search in current buffer' })
vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' }) vim.keymap.set('n', '<leader>gf', require('telescope.builtin').git_files, { desc = 'Search [G]it [F]iles' })
@ -72,7 +73,27 @@ vim.keymap.set('n', '<leader>sr', require('telescope.builtin').resume, { desc =
vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' }) vim.keymap.set('n', '[d', vim.diagnostic.goto_prev, { desc = 'Go to previous diagnostic message' })
vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' }) vim.keymap.set('n', ']d', vim.diagnostic.goto_next, { desc = 'Go to next diagnostic message' })
vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' }) vim.keymap.set('n', '<leader>e', vim.diagnostic.open_float, { desc = 'Open floating diagnostic message' })
vim.keymap.set('n', '<leader>q', vim.diagnostic.setloclist, { desc = 'Open diagnostics list' })
-- Open the diagnostics location list
vim.keymap.set('n', '<leader>q', function()
vim.diagnostic.setloclist()
vim.cmd('lopen')
end, {
noremap = true,
silent = true,
expr = false,
desc = 'Open the diagnostics location list'
})
-- Close the diagnostics location list
vim.keymap.set('n', '<leader>qq', function()
vim.cmd('lclose')
end, {
noremap = true,
silent = true,
expr = false,
desc = 'Close the diagnostics location list'
})
-- [[ Highlight on yank ]] -- [[ Highlight on yank ]]
-- See `:help vim.highlight.on_yank()` -- See `:help vim.highlight.on_yank()`

0
lua/config/options.lua Normal file → Executable file
View File

0
lua/config/themes.lua Normal file → Executable file
View File

0
lua/config/utils.lua Normal file → Executable file
View File

0
lua/custom/plugins/autopairs.lua Normal file → Executable file
View File

0
lua/custom/plugins/cmp.lua Normal file → Executable file
View File

0
lua/custom/plugins/comments.lua Normal file → Executable file
View File

0
lua/custom/plugins/formatting.lua Normal file → Executable file
View File

0
lua/custom/plugins/fugitive.lua Normal file → Executable file
View File

0
lua/custom/plugins/gitsigns.lua Normal file → Executable file
View File

0
lua/custom/plugins/harpoon.lua Normal file → Executable file
View File

0
lua/custom/plugins/indent.lua Normal file → Executable file
View File

0
lua/custom/plugins/init.lua Normal file → Executable file
View File

0
lua/custom/plugins/linting.lua Normal file → Executable file
View File

25
lua/custom/plugins/lsp-config.lua Normal file → Executable file
View File

@ -36,7 +36,12 @@ return {
end end
nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame') nmap('<leader>rn', vim.lsp.buf.rename, '[R]e[n]ame')
nmap('<leader>ca', vim.lsp.buf.code_action, '[C]ode [A]ction') nmap('<leader>ca', function()
vim.lsp.buf.code_action(require('telescope.themes').get_dropdown {
winblend = 10,
previewer = false,
})
end, '[C]ode [A]ction')
nmap('gd', vim.lsp.buf.definition, '[G]oto [D]efinition') nmap('gd', vim.lsp.buf.definition, '[G]oto [D]efinition')
nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences') nmap('gr', require('telescope.builtin').lsp_references, '[G]oto [R]eferences')
@ -58,17 +63,17 @@ return {
end, '[W]orkspace [L]ist Folders') end, '[W]orkspace [L]ist Folders')
-- Create a command `:Format` local to the LSP buffer -- Create a command `:Format` local to the LSP buffer
vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_) -- vim.api.nvim_buf_create_user_command(bufnr, 'Format', function(_)
vim.lsp.buf.format() -- vim.lsp.buf.format()
end, { desc = 'Format current buffer with LSP and lint' }) -- end, { desc = 'Format current buffer with LSP and lint' })
-- Enable auto-formatting on save -- Enable auto-formatting on save
-- vim.api.nvim_command([[ vim.api.nvim_command([[
-- augroup AutoFormatOnSave augroup AutoFormatOnSave
-- autocmd! autocmd!
-- autocmd BufWritePre * :Format autocmd BufWritePre * :Format
-- augroup END augroup END
-- ]]) ]])
end end
-- Setup neovim lua configuration -- Setup neovim lua configuration

0
lua/custom/plugins/lualine.lua Normal file → Executable file
View File

0
lua/custom/plugins/monokai.lua Normal file → Executable file
View File

0
lua/custom/plugins/telescope-undo.lua Normal file → Executable file
View File

0
lua/custom/plugins/telescope.lua Normal file → Executable file
View File

0
lua/custom/plugins/tree-sitter.lua Normal file → Executable file
View File

0
lua/custom/plugins/undotree.lua Normal file → Executable file
View File

0
lua/custom/plugins/venv-selector.lua Normal file → Executable file
View File

0
lua/custom/plugins/which-key.lua Normal file → Executable file
View File

0
lua/kickstart/plugins/autoformat.lua Normal file → Executable file
View File

0
lua/kickstart/plugins/debug.lua Normal file → Executable file
View File