typescript treesitter injection for angular templates

This commit is contained in:
2023-06-23 19:51:54 -05:00
parent 356ed03d2f
commit ee951b099b
4 changed files with 33 additions and 17 deletions
+5 -1
View File
@@ -50,8 +50,12 @@ function M.rnvimr()
end
function M.nvim_fzf()
local bat_command = "bat --color=always --style=header,grid --line-range :300 {}"
local default_command = "strings {+}"
local preview = '[[ -n "$(command -v bat)" ]] && ' .. bat_command .. " || " .. default_command
require("fzf").default_options = {
fzf_cli_args = " --height 100% --preview='[[ -n \"$(command -v bat)\" ]] && bat --color=always --style=header,grid --line-range :300 {} || strings {+}' ",
fzf_cli_args = " --height 100% --preview='" .. preview .. "' ",
}
end