.
This commit is contained in:
@@ -17,19 +17,7 @@ if HasPlug('telescope.nvim') then
|
||||
return layout
|
||||
end
|
||||
telescope.setup {
|
||||
defaults = {
|
||||
hidden = true,
|
||||
vimgrep_arguments = vimgrep_arguments,
|
||||
file_ignore_patterns = {"node_modules/", ".git/"},
|
||||
layout_config = {
|
||||
-- prompt_position = "top",
|
||||
},
|
||||
layout_strategy = "horizontal_merged",
|
||||
},
|
||||
pickers = {
|
||||
find_files = {
|
||||
hidden = true,
|
||||
},
|
||||
colorscheme = {
|
||||
enable_preview = true,
|
||||
mappings = {
|
||||
@@ -44,6 +32,15 @@ if HasPlug('telescope.nvim') then
|
||||
},
|
||||
}
|
||||
},
|
||||
defaults = {
|
||||
hidden = true,
|
||||
vimgrep_arguments = vimgrep_arguments,
|
||||
file_ignore_patterns = {"^node_modules/", "^.git/"},
|
||||
layout_config = {
|
||||
-- prompt_position = "top",
|
||||
},
|
||||
layout_strategy = "horizontal_merged",
|
||||
},
|
||||
extensions = {
|
||||
fzf = {
|
||||
fuzzy = true, -- false will only do exact matching
|
||||
|
||||
@@ -62,4 +62,18 @@ if HasPlug('toggleterm.nvim') then
|
||||
vim.api.nvim_set_keymap("x", "<leader>tl", string.format(":ToggleTermSendVisualSelection %d<CR>", ipythonId),
|
||||
{ noremap = true, silent = true })
|
||||
|
||||
|
||||
print(vim.o.shell)
|
||||
if vim.o.shell == 'pwsh' or vim.o.shell == 'powershell' then
|
||||
local powershell_options = {
|
||||
shellcmdflag = "-NoLogo -NoProfile -ExecutionPolicy RemoteSigned -Command [Console]::InputEncoding=[Console]::OutputEncoding=[System.Text.Encoding]::UTF8;",
|
||||
shellredir = "-RedirectStandardOutput %s -NoNewWindow -Wait",
|
||||
shellpipe = "2>&1 | Out-File -Encoding UTF8 %s; exit $LastExitCode",
|
||||
shellquote = "",
|
||||
shellxquote = "",
|
||||
}
|
||||
for option, value in pairs(powershell_options) do
|
||||
vim.opt[option] = value
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
@@ -1,9 +0,0 @@
|
||||
|
||||
if HasPlug('vim-illuminate') then
|
||||
require'nvim-treesitter.configs'.setup {
|
||||
matchup = {
|
||||
enable = true,
|
||||
disable = { },
|
||||
},
|
||||
}
|
||||
end
|
||||
Reference in New Issue
Block a user