mirror of
https://github.com/boxpositron/absolute-vim.git
synced 2026-02-28 03:30:36 +00:00
feat(lsp-config.lua): update key bindings for code actions and references, remove pycodestyle config feat(lualine.lua): add functions to display Flutter Tools statusline and check if Flutter Tools is active feat(mason.lua): add kotlin_language_server to the list of supported language servers feat(molten.lua): improve configuration for Molten plugin based on file type feat(none-ls.lua): improve configuration for null-ls sources, resolve virtual environment for mypy diagnostics fix(telescope.lua): update trouble import path to sources instead of providers feat(telescope.lua): add vimgrep_arguments to improve search functionality feat(telescope.lua): add mappings for trouble.open in insert and normal mode feat(telescope.lua): load extensions flutter and dap feat(telescope.lua): define custom find_files function with specific find_command feat(trouble.lua): update trouble import path to sources instead of providers feat(trouble.lua): update mappings to use trouble_sources.open instead of trouble_telescope.open_with_trouble feat(core/init.lua): add ignorecase and smartcase options for case-insensitive searching feat(core/init.lua): add backspace option for more flexible backspacing behavior feat(core/init.lua): set cursor color based on mode in InsertEnter and InsertLeave autocmds feat(dap.lua): add nvim-nio dependency and load telescope-dap.nvim extension feat(flutter-tools.lua): add flutter-tools.nvim plugin configuration feat(molten.lua): add lazy loading and ft option for Python files feat(none-ls.lua.disabled): add none-ls.nvim plugin configuration feat(poet-v.lua): add lazy loading and ft option for Python files feat(vim-tmux-navigator.lua): update cmd and keys for vim-tmux-navigator plugin chore(remap.lua): reorganize keymap descriptions for better clarity and readability feat(remap.lua): add key mappings for jumping up, down, to next, and to previous locations with center screen feat(remap.lua): add key mappings for resizing windows right, left, up, and down by 10 lines feat(safe-invoke.lua): add utility function SafeInvoke to safely invoke functions and handle errors
44 lines
1.2 KiB
Lua
44 lines
1.2 KiB
Lua
local telescope = require("telescope")
|
|
local builtin = require("telescope.builtin")
|
|
local trouble = require("trouble.sources.telescope")
|
|
|
|
|
|
telescope.setup({
|
|
defaults = {
|
|
vimgrep_arguments = {
|
|
"rg",
|
|
"--color=never",
|
|
"--no-heading",
|
|
"--with-filename",
|
|
"--line-number",
|
|
"--column",
|
|
"--smart-case",
|
|
},
|
|
mappings = {
|
|
i = {
|
|
["<C-q>"] = trouble.open,
|
|
},
|
|
n = {
|
|
["<C-q>"] = trouble.open,
|
|
},
|
|
},
|
|
},
|
|
})
|
|
|
|
telescope.load_extension("flutter")
|
|
telescope.load_extension("dap")
|
|
|
|
|
|
local find_files = function()
|
|
builtin.find_files({
|
|
find_command = { "rg", "--files", "--hidden", "--glob", "!.git" },
|
|
})
|
|
end
|
|
|
|
vim.keymap.set("n", "<leader>pf", find_files, { desc = "Fuzzy find files in cwd" })
|
|
vim.keymap.set("n", "<leader>pr", builtin.oldfiles, { desc = "Fuzzy find recent files" })
|
|
vim.keymap.set("n", "<C-p>", builtin.git_files, { desc = "Fuzzy find files in git in cwd" })
|
|
vim.keymap.set("n", "<leader>ps", function()
|
|
builtin.grep_string({ search = vim.fn.input("Grep > ") })
|
|
end, { desc = "Find string under cursor in cwd" })
|