Noevim fzf telescope
This commit is contained in:
parent
92eb2095b0
commit
948b03fad9
|
@ -138,7 +138,7 @@ bind = $mainMod, SPACE, togglesplit, # dwindle
|
|||
bind = CONTROL_L ALT_L, L, exec, swaylock
|
||||
bind = $mainMod, C, exec, cliphist list | awk '{print $0, "\0icon\x1fcom.github.davidmhewitt.clipped"}' | rofi -dmenu -display-columns 2 | cliphist decode | wl-copy
|
||||
bind = $mainMod, Y, exec, /home/user/.config/rofi/rofi-ykman.sh
|
||||
bind = Super_L Control_L, Q, exec, systemctl suspend
|
||||
|
||||
bind = $mainMod, Escape, exec, rofi -show power-menu -modi power-menu:$scripts/rofi-power-menu
|
||||
|
||||
bind = ,XF86PowerOff, exec, rofi -show power-menu -modi power-menu:$scripts/rofi-power-menu
|
||||
|
|
|
@ -11,7 +11,7 @@ use hyprland_ipc::{client, monitor, option, workspace};
|
|||
#[command(name = "hyprsome")]
|
||||
#[command(author = "sopa0")]
|
||||
#[command(version = "0.1.11")]
|
||||
#[command(about = "Makes hyprland workspaces behave like awesome", long_about = None)]
|
||||
#[command(about = "Makes hyprland workspaces behave like awesome")]
|
||||
struct Cli {
|
||||
#[command(subcommand)]
|
||||
command: Commands,
|
||||
|
|
|
@ -54,7 +54,7 @@ require('lazy').setup({
|
|||
{'numToStr/Comment.nvim', config = function () require('Comment').setup() end},
|
||||
{'nvim-lualine/lualine.nvim', dependencies = { 'nvim-tree/nvim-web-devicons', opt = true }},
|
||||
{'nvim-telescope/telescope-fzf-native.nvim', build = 'cmake -S. -Bbuild -DCMAKE_BUILD_TYPE=Release && cmake --build build --config Release && cmake --install build --prefix build' },
|
||||
{'nvim-telescope/telescope.nvim', dependencies = {'nvim-lua/plenary.nvim'}},
|
||||
{'nvim-telescope/telescope.nvim', dependencies = {'nvim-lua/plenary.nvim', 'nvim-telescope/telescope-fzy-native.nvim'}},
|
||||
{'nvim-tree/nvim-tree.lua', dependencies = {'nvim-tree/nvim-web-devicons'}, tag = 'nightly'},
|
||||
{'nvim-treesitter/nvim-treesitter', build = ":TSUpdate"},
|
||||
{'williamboman/mason-lspconfig.nvim', dependencies = {'williamboman/mason.nvim', 'neovim/nvim-lspconfig'}},
|
||||
|
|
|
@ -34,7 +34,7 @@ vim.g.mapleader = ","
|
|||
vim.g.python_highlight_all = 1
|
||||
vim.wo.signcolumn = "number"
|
||||
vim.wo.relativenumber = true
|
||||
vim.g.rooter_patterns = {".git", "Makefile", "CMakeLists.txt", "build/"}
|
||||
vim.g.rooter_patterns = {".git", "Makefile", "CMakeLists.txt", "build/", "meson.build"}
|
||||
vim.g.rooter_silent_chdir = 1
|
||||
|
||||
-- Vimtex
|
||||
|
|
|
@ -27,6 +27,15 @@ M.buffers = function()
|
|||
require"telescope.builtin".buffers(opts)
|
||||
end
|
||||
|
||||
M.fuzzyFindFiles = function()
|
||||
require"telescope.builtin".grep_string({
|
||||
path_display = { 'smart' },
|
||||
only_sort_text = true,
|
||||
word_match = "-w",
|
||||
search = '',
|
||||
})
|
||||
end
|
||||
|
||||
local actions = require("telescope.actions")
|
||||
require("telescope").setup{
|
||||
defaults = {
|
||||
|
@ -47,6 +56,8 @@ require("telescope").setup{
|
|||
["<C-k>"] = actions.move_selection_previous,
|
||||
},
|
||||
},
|
||||
file_sorter = require'telescope.sorters'.get_fzy_sorter,
|
||||
generic_sorter = require'telescope.sorters'.get_fzy_sorter,
|
||||
},
|
||||
extensions = {
|
||||
undo = {
|
||||
|
@ -64,16 +75,22 @@ require("telescope").setup{
|
|||
},
|
||||
|
||||
}
|
||||
},
|
||||
fzy_native = {
|
||||
override_generic_sorter = false,
|
||||
override_file_sorter = true,
|
||||
}
|
||||
}
|
||||
|
||||
telescope.load_extension("undo")
|
||||
telescope.load_extension('fzf')
|
||||
telescope.load_extension('fzy_native')
|
||||
|
||||
|
||||
vim.keymap.set("n", "<leader>u", function() require("telescope").extensions.undo.undo() end, {noremap = true, silent = true})
|
||||
vim.keymap.set("n", "<C-p>", function() require('telescope_config').git_files() end, {noremap = true, silent = true})
|
||||
vim.keymap.set("n", "<C-O>", function() require('telescope_config').project_files() end, { silent = true, noremap = true })
|
||||
vim.keymap.set("n", "<C-f>", function() require('telescope.builtin').live_grep{ cwd = vim.fn.systemlist("git rev-parse --show-toplevel 2> /dev/null || pwd")[1] } end, { silent = true, noremap = true })
|
||||
-- vim.keymap.set("n", "<C-f>", function() require('telescope.builtin').live_grep{ cwd = vim.fn.systemlist("git rev-parse --show-toplevel 2> /dev/null || pwd")[1] } end, { silent = true, noremap = true })
|
||||
vim.keymap.set("n", "<C-f>", function() require('telescope_config').fuzzyFindFiles() end, { silent = true, noremap = true })
|
||||
|
||||
return M
|
||||
|
|
Loading…
Reference in New Issue